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.

GridBoundColumns count is showing as zero

Thread ID:





8406 Nov 5,2003 06:29 AM Nov 5,2003 07:11 AM Windows Forms 1
Tags: GridControl
Sunil Marada
Asked On November 5, 2003 06:29 AM

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 07:11 AM

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;


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.