I am using Netadvantage 6.3, with ASP.NET 2.0, Visual Studio 2005. That said, I wouldl ike to have the UltraWebGrid, onLoad, default to a specified column for GroupBy.
Is this possible? How.
Thanks.
MsBajanLady
MsBajanLady,
You can achieve this by using the IsGroupByColumn property of the Column. Use the following code:
In Visual Basic:
Imports Infragistics.WebUI.UltraWebGrid...' Set the ViewType property to GroupBy modeMe.UltraWebGrid1.DisplayLayout.ViewType = ViewType.OutlookGroupBy' Set the IsGroupByColumn property to TrueMe.UltraWebGrid1.DisplayLayout.Bands(0).Columns(0).IsGroupByColumn = True
Imports
' Set the ViewType property to GroupBy mode
Me
' Set the IsGroupByColumn property to True
True
In C#:
using Infragistics.WebUI.UltraWebGrid;...//Set the ViewType property to GroupBy modethis.UltraWebGrid1.DisplayLayout.ViewType = ViewType.OutlookGroupBy;//Set the IsGroupByColumn property to true, Use column index this.UltraWebGrid1.DisplayLayout.Bands[0].Columns[0].IsGroupByColumn = true;Thank you.Bunty :)
using Infragistics.WebUI.UltraWebGrid;...//Set the ViewType property to GroupBy modethis.UltraWebGrid1.DisplayLayout.ViewType = ViewType.OutlookGroupBy;//Set the IsGroupByColumn property to true, Use column index this.UltraWebGrid1.DisplayLayout.Bands[0].Columns[0].IsGroupByColumn = true;
using
//Set the ViewType property to GroupBy mode
this
//Set the IsGroupByColumn property to true
true