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.

Columns number

Thread ID:

Created:

Updated:

Platform:

Replies:

61192 May 21,2007 09:39 AM May 22,2007 01:57 PM Windows Forms 3
loading
Tags: GridControl
Hrvoje
Asked On May 21, 2007 09:39 AM

How to get the number of columns on the left side of the grid?

haneefm [Syncfusion]
Replied On May 21, 2007 11:32 AM

Hi Hrcko,

You can try the.Model.Colcount property to get a total column count in a grid. Also you can use the ViewLayout.VisibleCols property to find number of visible column count in a grid. Here is a code snippet.

int visibleColCount = this.grid.ViewLayout.VisibleCols;
int totalColcount = this.grid.Model.ColCount;

Best regards,
Haneef

Hrvoje
Replied On May 22, 2007 03:51 AM

I want to see numbers on the left side of the grid.
And I ment rows not columns.
So, if I have 20 records in grid, I would like to see number 1-20 beside every row.

haneefm [Syncfusion]
Replied On May 22, 2007 01:57 PM

Hi Hrcko,

If you like to have numbered rowheaders in a GridDataBoundGrid, try these property settings. This will help you.

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

Below is the forum thread that discuss with this task in GridGroupingControl.
http://www.syncfusion.com/support/Forums/message.aspx?&MessageID=52552.

Best regards,
Haneef

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.

;