Click here to Skip to main content
15,887,683 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Good day!

can anyone help me or teach me how to create gridview within a formview?

this is what i wanted to happen, I have a formview which will display the descriptions of a specific file. In each descriptions it contains list that can be assignment list, course list, and list from other tables. This list should be displayed in a gridview.

how can I display specific data table or dataset in 1 gridview?

please help me. Thanks in advance.
Posted

1 solution

what do you mean within a formview?
you can bind the dataset into the gridview
first fill the dataset with data and bind it in gridview
like this..
VB
sqladapter.fill(dataset)
gridview1.datasource=dataset.tables(0)
gridview1.databind
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900