Hi Ali,
The sorting for a DataGrid does not change the DataTable associated with the grid. You can use a DataView and sort it to coorespond to how you want the data displayed on the grid.
>Hi,
>
>We are having a problem with mmDataGrid when the AllowSorting property is set to True. The resulting ordering of data rows by the user on the grid is not reflected on the table in the primary business object's current data set; so the current rows on the grid and the primary business object's table are different. This makes our program wrong.
>
>We are setting the MappingName property of grid's table style to a DB table name. This is the same table with the primary business object's default table. Are we using the grid wrong?
>
>Thanks,
-----------------------------------------
Cathi Gero, CPA
Prenia Software & Consulting Services
Microsoft C# / .NET MVP
Mere Mortals for .NET MVP
cgero@prenia.comwww.prenia.comWeblog: blogs.prenia.com/cathi