Posted 30 July 2018, 12:10 pm EST
Hi
there are a way to programmatically sort a trueDbgrid?
if not is there are a way to know witch column the grid is sorted for?
Thanks
Forums Home / ComponentOne / WinForms Edition
Posted by: roberto_tomasi on 30 July 2018, 12:10 pm EST
Posted 30 July 2018, 12:10 pm EST
Hi
there are a way to programmatically sort a trueDbgrid?
if not is there are a way to know witch column the grid is sorted for?
Thanks
Posted 31 July 2018, 2:54 am EST
Hi Roberto,
You can store the value of sorted column inside C1TrueDBGrid1_HeadClick event and then can use it wherever required. Please see the code given below.
string currSort;
private void C1TrueDBGrid1_HeadClick(object sender, C1.Win.C1TrueDBGrid.ColEventArgs e)
{
currSort = "Currently Sorted By: " + c1TrueDBGrid1.Splits[0].DisplayColumns[e.ColIndex].Name;
}
Thanks
+Manindra
Posted 31 July 2018, 5:23 am EST
Hello!
Thanks, Manindra.
Regards,
Meenakshi
Posted 2 August 2018, 10:53 am EST
Thanks, Manindra. its fine