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.
Syncfusion Feedback

How to change a multiple Headers's text?

Thread ID:

Created:

Updated:

Platform:

Replies:

110887 Aug 29,2013 05:47 AM Sep 3,2013 12:26 AM Windows Forms 1
loading
Tags: GridControl
seven
Asked On August 29, 2013 05:47 AM

hi,

 I want to set multiple headers's text.the grid named grd1 which has 3 columns.
and now it has 5 row headers added:

 grd1.Model.Rows.HeaderCount = 5;
 grd1[1, 1].Text = "sss";
 grd1[1, 2].Text = "2";
 grd1[1, 3].Text = "3";

the above code can be excuted correctly,but the next code throw a exception "System.ArgumentOutOfRangeException":
grd1[2, 1].Text = "sss";

Why can't I assign the text of the cell(2,1)?

Vinish Kumar K [Syncfusion]
Replied On September 3, 2013 12:26 AM

Hi

We have analyzed the reported query in our end, the cell text is assign if the cell is textbox. Please assign the headerText for the cell, other wise please use the PrepareviewStyleInfo or QUeryCellInfo event to assign the text.

Please let me know if you have any concerns,

Regards,
Vinish K

CONFIRMATION

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.

Warning Icon 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.Close Icon

;