This is a migrated thread and some comments may be shown as answers.

problem in filtering and sorting on dynamic colums

3 Answers 57 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Priya
Top achievements
Rank 1
Priya asked on 13 Sep 2011, 10:09 AM
I have added some of the columns in grid at run time and some at design time.Sorting is not working on some of the columns and on clicking those columns the entire grid gets disappears and filtering is not at all working.

3 Answers, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 13 Sep 2011, 10:18 AM
Hello Priya,

Inorder for sorting and all to work you cannot add columns in grid at run time and some at design time,either you have to add all columns at runtime or all at designtime.

Thanks,
Shinu.
0
Priya
Top achievements
Rank 1
answered on 14 Sep 2011, 06:14 AM
hi shinu
i tried to add all columns at run time ...but it was behaving same as previous
0
Shinu
Top achievements
Rank 2
answered on 21 Sep 2011, 11:00 AM
Hello Priya,

 I assume that you are binding the grid in PageLoad event, which is Simple data binding technique. If you are using any advanced feature in grid(like filtering), then a better approach is using "AdvancedData binding" using NeedDataSource event.

For more information about this can be available here.
Advanced Data-binding (using NeedDataSource event)

-Shinu.
Tags
Grid
Asked by
Priya
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Priya
Top achievements
Rank 1
Share this question
or