[Solved] No Column Header Text but Text in the Column Chooser

1 Answer 3 Views
GridView
Simon
Top achievements
Rank 1
Iron
Iron
Simon asked on 20 Jul 2026, 04:45 PM

I have a grid where I have some very narrow columns where I might use an icon in the header or simply leave the header text blank. However, it would be nice to be able to have something go into the Column Chooser text rather than simply use the HeaderText in there so the user knows what the column is when they are looking at the list. Is this possible at all please?

Thank you in advance.

Simon

1 Answer, 1 is accepted

Sort by
0
Nadya | Tech Support Engineer
Telerik team
answered on 21 Jul 2026, 08:19 AM

Hello, Simon,

Yes, it is possible to keep your real HeaderText blank (for the icon/narrow column) but override the text that gets shown in the Column Chooser list via the ColumnChooserItemElementCreating event, setting the item element's Text.

You can keep your real HeaderText blank (so the grid column stays narrow / shows just its icon), and override only the text shown in the Column Chooser list using the ColumnChooserItemElementCreating event. Use the following approach:

1. Store the caption on the column's Tag so the blank-header column carries a description:

 this.radGridView1.Columns[1].HeaderText = "";
 this.radGridView1.Columns[1].Tag = "Product Name";

2. Set the Column Chooser item's text from that Tag when each chooser item is created:

private void RadGridView1_ColumnChooserItemElementCreating(object sender, ColumnChooserItemElementCreatingEventArgs e)
{
 // If the column has no HeaderText (blank/icon header) but we stored a
 // descriptive caption in its Tag, show that caption in the Column Chooserinstead of the empty header text.
 if (string.IsNullOrEmpty(e.Column.HeaderText) && e.Column.Tag is string caption
        && !string.IsNullOrEmpty(caption))
 {
        e.ItemElement.Text = caption;
    }
}

Regards,
Nadya | Tech Support Engineer
Progress Telerik

Modernizing a WinForms application? Use the AI-powered WinForms Converter to simplify migration to Telerik UI for WinForms.
Tags
GridView
Asked by
Simon
Top achievements
Rank 1
Iron
Iron
Answers by
Nadya | Tech Support Engineer
Telerik team
Share this question
or