G
Guest
Hi
I have a problem when user sorts a column using columnheader clicking.
After sorting when program gets the datasource to access a selected row ,
wrong row is accessed . I think my datasource isn't sorted when user sorts
the gride.Here is a pice of code :
DataTable table=(DataTable)MyDataGrid.DataSource;
string str=table.Rows[MyDataGrid.CurrentRowIndex]["name"].ToString();
How can i solve this problem.
I have a problem when user sorts a column using columnheader clicking.
After sorting when program gets the datasource to access a selected row ,
wrong row is accessed . I think my datasource isn't sorted when user sorts
the gride.Here is a pice of code :
DataTable table=(DataTable)MyDataGrid.DataSource;
string str=table.Rows[MyDataGrid.CurrentRowIndex]["name"].ToString();
How can i solve this problem.