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

How to change a multiple Headers's text?


 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)?

1 Reply

VK Vinish Kumar K Syncfusion Team September 3, 2013 04:26 AM UTC


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,

Vinish K

Live Chat Icon For mobile
Up arrow icon