How can i get the NumberedRowHeaders value?

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.


1 Reply

LS Lingaraj S Syncfusion Team 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)
{
if(e.ColIndex==1&&e.RowIndex>0)
{
e.Style.Text = GridRangeInfo.GetNumericLabel(e.RowIndex);
}
}


Let me know if you have any queries.

Regards,
Lingaraj S.



Loader.
Up arrow icon