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

User (Old forums)
Post count: 23064

One way you could do it would be to access the DataRow which is passed in with the GroupAddedEventArgs. You could then access either the cell directly, or go through the source object. Upon inspection it seems to pick up the first row from the group, which shouldn’t matter, because if you’re grouping the data you display as the title would be common to all the rows.

so you could either do.

e.Group.Title = e.DataRow.Cells[“Data”].Value.ToString();

or you could access the “Data” field through the SourceObject property of the DataRow. Whichever is easier.

Let us know how you get on.


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