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.

Row Number in GridDataBoundGrid

Thread ID:

Created:

Updated:

Platform:

Replies:

5173 Jun 23,2003 01:09 PM Jun 23,2003 01:30 PM Windows Forms 1
loading
Tags: GridControl
Anonymous User
Asked On June 23, 2003 01:09 PM

Is there a way to show row number in the first or the pointer column of the GridDataBoundGrid? Thanks.

Administrator [Syncfusion]
Replied On June 23, 2003 01:30 PM

> Is there a way to show row number in the first or the pointer column of the GridDataBoundGrid? > > Thanks. You can change the row header celltype with grid.Model.BaseStylesMap["Row Header"].StyleInfo.CellType = "Header"; Then it should display the row number in the first (header) column but you loose the pencil/marker. If you need that marker another idea would be to set Model.Cols.HeaderCount = 1 and then handle the PrepareViewStyleInfo and set e.Style.Text = row.ToString(); when e.ColIndex = 1 (whereas 'e' is the event args passed to PrepareViewStyleInfo ) Stefan

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.

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.

;