I'm creating a grid dynamically in my c# code by adding columns like this:
GridBoundColumn
boundColumn = new GridBoundColumn();
TargetGrid.MasterTableView.Columns.Add(boundColumn);
After I've added all of the columns I need to set the sort order programmatically. So let's say I add 3 columns: ID, name and address. Now I need to set the grid to sort ascending on Name. How can I do that?
Thanks in advance!
Ben