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 : Nov 16th 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

GridBoundColumns count is showing as zero

Thread ID:

Created:

Updated:

Platform:

Replies:

8406 Nov 5,2003 11:29 AM UTC Nov 5,2003 12:11 PM UTC WinForms 1
loading
Tags: GridControl
Sunil Marada
Asked On November 5, 2003 11:29 AM UTC

Hi I am using data set and I am populating the data set using data adapter. I assigned the data source of the gridDataBoundGrid1 to the dataset. gridDataBoundGrid1.datasource=dataset1 I am not able to ge the GridBoundColumns. It is showing as zero. Please suggest in this issue.

Administrator [Syncfusion]
Replied On November 5, 2003 12:11 PM UTC

If you do not explicitly add GridBoundColumns to the grid.GridBoundColumns collection, then this property remains unpopulated. But in this case, you can use the grid.Binder.InternalColumns collection that does get populated when no GridBoundColumns have been explicitly added. Below is some sample usage. GridStyleInfo style = this.gridDataBoundGrid1.Binder.InternalColumns[3].StyleInfo; style.CellType = "ComboBox"; style.DataSource = comboColumnDataTable; style.DisplayMember = "displaymember"; style.ValueMember = "valuemember"; style.BackColor = Color.LightGoldenrodYellow;

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

;