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. Image for the cookie policy date

MultiColumnComboBox - HeaderText of ListBox

Hello,

is it possible to change the HeaderText in the grid of a MultiColumnComboBox?

Many thanks for help.

Frank


7 Replies

SK Senthil Kumaran Rajan Syncfusion Team November 5, 2014 09:14 AM UTC

Hi Frank,

 

Thanks for using Syncfusion product,

 

In MultiColumnComboBox the GridListControl has been used as popup control. So the header text can be customized by handling the GridListControl QueryCellInfo event. Please make use of below code snippet. We have also prepared a sample for your reference and it is attached below.

 

Code Snippet[C#]:

 

void Grid_QueryCellInfo(object sender, Syncfusion.Windows.Forms.Grid.GridQueryCellInfoEventArgs e)

        {           

            if (e.RowIndex == 0 && e.ColIndex == 1)

            {

                e.Style.Text = "Name";

            }

        }

 

Please let us know if you need further assistance,

 

Regards,

R.Senthil kumaran

 


Attachment: MultiColumnComboBox_cad69a5.zip


FP Frank Piplak November 5, 2014 11:25 AM UTC

Hello,
thanks for your answer.
Sorry but I don't know, how to use it in VB.
Regards,
Frank


SK Senthil Kumaran Rajan Syncfusion Team November 6, 2014 04:25 AM UTC

Hi Frank,

 

Thanks for your update,

 

The sample has been modified to VB. Please download the sample from below attachment.

 

Please let us know if you need further assistance,

 

Regards,

R.Senthil Kumaran


Attachment: MultiColumn_VB_df5267c3.zip


FP Frank Piplak November 6, 2014 04:00 PM UTC

Hello,

works perfect, many thanks!

Best regards,
Frank


SK Senthil Kumaran Rajan Syncfusion Team November 7, 2014 10:35 AM UTC

Hi Frank,

 

We are glad to hear that the reported query has been resolved. Please let us know if you need any further assistance.

 

Regards,

R.Senthil Kumaran

 



CO Cosyspro replied to Senthil Kumaran Rajan January 18, 2024 09:38 AM UTC

Hi Syncfusion team,

I have the same problem for customize header text in grid of the MultiColumnComboBox.

I use the last version 24.1.41 but I not find the  GridListControl QueryCellInfo event !

Can you help me how to do this.

Thank you in advance for your help.

Regards



BS Bhaskar Suresh Syncfusion Team January 30, 2024 05:06 PM UTC

Hi Cosyspro,


We have prepared a new sample for the reported query with the 24.1.41 version to achieve your reported query. Please refer to the attached sample.


Regards,

Bhaskar Suresh


Attachment: MCCB_Header_bde9d60e.zip

Loader.
Live Chat Icon For mobile
Up arrow icon