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

writing specific numbers at row header

Thread ID:

Created:

Updated:

Platform:

Replies:

77595 Nov 8,2008 08:39 AM UTC Nov 10,2008 11:21 PM UTC WinForms 2
loading
Tags: GridControl
Hyung-Jin Lee
Asked On November 8, 2008 08:39 AM UTC

Hellow.
I showed the numbers in the row header in the
gridDataBoundGrid using below code.

-----------------------------------------
this.gridDataBoundGrid1.Model.Options.
NumberedRowHeaders = true;
this.gridDataBound1_Movie.BaseStylesMap
["Row Header"].StyleInfo.CellType = "Header";
-----------------------------------------

But number is always stated from 1.
If I want statring number to be 100 or 200,
What should I do ?
Please, give me an answer. Thank you.


Jisha Joy [Syncfusion]
Replied On November 10, 2008 09:16 AM UTC

Hi Lee,


writing specific numbers at row header

This can be achieved by handling the QeryCellInfo. Please refer the code:


this.gridDataBoundGrid1.Model.QueryCellInfo += new GridQueryCellInfoEventHandler(Model_QueryCellInfo);


void Model_QueryCellInfo(object sender, GridQueryCellInfoEventArgs e)
{
if (e.ColIndex == 0 && e.RowIndex>0)
{
e.Style.CellType = "Header";
e.Style.CellValue = e.RowIndex + 99;
}
}



Please try this and let me know if this helps.

Regards,
Jisha


Hyung-Jin Lee
Replied On November 10, 2008 11:21 PM UTC

Hello. Jisha
It is really helpful and I solved the
problem.
Thank you very much. ^_^



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

;