views:

57

answers:

1

hey i have a query.... i have extracted data from database..currently that information is in a string variable...my point is to pass that string value into a gridview in the application..i have already created the gridview with checkbox list fitted into it...on inserting the values will the gridview will expand dynamically ??..if no then what to do ? how to push the data into gridview so that it expands dynamically? ..pls help me out

A: 

The easiest way is to have your data in a datatable and bind the gridview to that datatable. Take a look at this sample for some guidance. If you have one long string what is the behavior that your expecting.

rerun