Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
225
Setting group-row text when grouping by column with images
posted

I have an unbound column of type Bitmap in my grid. Some of the cells in this column have their value set to a bitmap image. When I group by this column, the text displayed on the group header row is "System.Drawing.Bitmap". What's the best way to display a custom group label when grouping on an image column like this?

 

 

Parents
No Data
Reply
  • 469350
    Verified Answer
    Offline posted

    Handle the InitializeGroupByRow event.

    You can set the Description inside this event, which is the text displayed in the GroupByRow, to anything you want.

    e.Row.Value returns the value of the Rows in the group, so you could check to see if this is a Bitmap and if so, change the Description to whatever you want.

     

Children
No Data