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 can i get the NumberedRowHeaders value?

Thread ID:





80679 Apr 22,2009 06:49 AM UTC Apr 23,2009 07:32 PM UTC Windows Forms 1
Tags: GridControl
Administrator [Syncfusion]
Asked On April 22, 2009 06:49 AM UTC

hi every body;
I have a control grid.the property of (NumberedRowHeaders) is true.so it shows the row index.
Now the question is : how can i get this column's value and set it into another column's cell.I want to have each row's index according to the NumberedRowHeaders.
Thanks every body.

Lingaraj S [Syncfusion]
Replied On April 23, 2009 07:32 PM UTC

Hi Shayesteh,

Thank you for your interest in Syncfusion product.

If you want to get the numbered column header value, please try using GetNumericLabel method in GridGroupingControl. The GetNumericLabel method returns the row header value.

Please refer the code below:

this.gridControl1.QueryCellInfo += new GridQueryCellInfoEventHandler(gridControl1_QueryCellInfo);
void gridControl1_QueryCellInfo(object sender, GridQueryCellInfoEventArgs e)
e.Style.Text = GridRangeInfo.GetNumericLabel(e.RowIndex);

Let me know if you have any queries.

Lingaraj S.


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