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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How to change a multiple Headers's text?

Thread ID:





110887 Aug 29,2013 09:47 AM UTC Sep 3,2013 04:26 AM UTC WinForms 1
Tags: GridControl
Asked On August 29, 2013 09:47 AM UTC


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


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.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

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