Hi,
In my webgrid, I am grouping company name column and expand all groups by default, then it looks like,
company name: ABC
---
company name: DEF
Here I need to change this text as My own text instead of column name and grouped column value.
How do I change this text?
Thanks in Advance.
ramskr4u,
Depending on what you want to display, you may be able to instead use the grid's DisplayLayout.GroupByRowDescriptionMaskDefault property (or an individual band's GroupByRowDescriptionMask, to override this for a specific band). There are some tokens you can use here that the grid will automatically substitute based on relevant data. The API documentation of the UltraGridLayout.GroupByRowDescriptionMaskDefault property (link leads to the file in our online help documentation of NetAdvantage for .NET 2009 Volume 1) lists the available tokens.
If the description mask doesn't give you the flexibility you need, use the InitializeGroupByRow event of the grid. Cast "e.Row" to the GroupByRow class (Infragistics.WebUI.UltraWebGrid.GroupByRow). From that, update the Text of the GroupByRow to be what you'd like to display.