We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.

Grouped column text

Thread ID:





13593 May 3,2004 03:05 PM May 3,2004 05:50 PM Windows Forms 1
Tags: Grouping
Sean Greer
Asked On May 3, 2004 03:05 PM

When I group by a column the group cell text is the column name (mappingname) rather than the header text. What''s up with that? Also, the column in question is a combobox and I would like the text in the group cell to use the display value from the combobox datasource rather than the column value. That is, rather than showing "TaskSource: 2 - 2 Items", I''d like it to show "Source: Planning - 2 Items". Any thoughts on how I accomplish this? BTW, here is how I''m setting up the column descriptor: GridColumnDescriptor gcd = new GridColumnDescriptor(); gcd.MappingName = "TaskSource"; gcd.HeaderText = "Source"; gcd.Appearance.AnyCell.CellType = "ComboBox"; gcd.Appearance.AnyCell.ShowButtons = GridShowButtons.Hide; gcd.Appearance.AnyCell.ExclusiveChoiceList = true; gcd.Appearance.AnyCell.DataSource = alSourceCodes; gcd.Appearance.AnyCell.DisplayMember = "Description" gcd.Appearance.AnyCell.ValueMember = "CodeID"

Administrator [Syncfusion]
Replied On May 3, 2004 05:50 PM

Here is a forum thread that shows how you can use QueryCellStyleInfo to customize the caption text. http://www.syncfusion.com/Support/Forums/message.aspx?MessageID=11530


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.