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

Columns number

Thread ID:

Created:

Updated:

Platform:

Replies:

61192 May 21,2007 01:39 PM UTC May 22,2007 05:57 PM UTC WinForms 3
loading
Tags: GridControl
Hrvoje
Asked On May 21, 2007 01:39 PM UTC

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

haneefm [Syncfusion]
Replied On May 21, 2007 03:32 PM UTC

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 07:51 AM UTC

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 05:57 PM UTC

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.

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

;