Sir,
I want to group the rows in the WinGrid, based on a column in the Gird.
Eg.. I have a dataset, with columns Name, Address, City, State...
Now i want to Group the record based on State and then with in the State, i want to group by City.. I dont want to provide the group by box to the user. i want to group it by myself in the code.
Kindly help me to resolve this issue...
Thanks
R.Vasanth
To group a column in code, you add it to the SortedColumns collection. The add method has an overload that take a boolean parameter for GroupBy. So it looks something like this.
private void ultraGrid1_InitializeLayout(object sender, Infragistics.Win.UltraWinGrid.InitializeLayoutEventArgs e) { e.Layout.Bands[0].SortedColumns.Add("My Column", false, true); }
Hi,
Do you have similar functionality for a web grid? I don't see the overloaded boolean parameter for GroupBy in the Add() Method. Please help.
Thanks in advance.