Home Forums WinForms controls Xceed Grid for WinForms Group Header rows Reply To: Group Header rows

User (Old forums)
Member
Post count: 23064

The GridControl class has an event GroupAdded, that is called whenever a new group is added.<code>grid.GroupAdded += new GroupAddedEventHandler(grid_GroupAdded);
private void grid_GroupAdded(object sender, GroupAddedEventArgs e) {
Group group = e.Group; // the group that was added
RowList headerRows = group.HeaderRows; // the header rows of the group
foreach(Row row in headerRows) {
TextRow textRow = row as TextRow;
if (textRow != null) {
textRow.Text = “My info”;
break;
}
}
}</code>

Imported from legacy forums. Posted by Tommy (had 3315 views)