Home Forums WinForms controls Xceed Grid for WinForms Group.TitleFormat Reply To: Group.TitleFormat

User (Old forums)
Post count: 23064

You need to catch the GroupAdded event on the grid.


this.gcProducts.GroupAdded += new Xceed.Grid.GroupAddedEventHandler(this.gcProducts_GroupAdded);

private void gcProducts_GroupAdded(object sender, Xceed.Grid.GroupAddedEventArgs e)
if (e.Group.GroupBy == “ID”)
e.Group.Title = “Hello World”;
// e.Group.Key will give you the value of the ID field. You can then do a dbase lookup
// on the key and set the title of the group to what you want.

Happy codin.


Imported from legacy forums. Posted by Peter (had 414 views)