Hi I have a grid with 10 Columns which i bind with different data sources at different times.
based on the Databinding my columns gets visible.
Now when i click on a certain column which my grids get sorted for the first time.
now i again bind the grid by perofrming some page action. the problem is my grid still has previously sorted column and my new datasource does not contain this column. due to this i am getting error.
I need something which will deselect any sorted column when i rebind the datasource.
Example:
Grid has datasource with Name, ID and Age Field.
I sort on Name first.
Now i will bind grid with new Datasource which has only ID and Age.
at this moment i am getting error that your datasource does not have column name "Name" for sorting.
Kindly help me.
based on the Databinding my columns gets visible.
Now when i click on a certain column which my grids get sorted for the first time.
now i again bind the grid by perofrming some page action. the problem is my grid still has previously sorted column and my new datasource does not contain this column. due to this i am getting error.
I need something which will deselect any sorted column when i rebind the datasource.
Example:
Grid has datasource with Name, ID and Age Field.
I sort on Name first.
Now i will bind grid with new Datasource which has only ID and Age.
at this moment i am getting error that your datasource does not have column name "Name" for sorting.
Kindly help me.