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: June 24, 2019).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

data binding questions

Thread ID:





1075 Sep 19,2002 06:12 PM UTC Sep 20,2002 01:27 PM UTC WinForms 4
Tags: GridControl
Amanda Kabak
Asked On September 19, 2002 06:12 PM UTC

Though my company bought your product a few months ago now, I'm finally having a moment or two to start playing around with them. I have no problem binding a dataset to a grid, displaying the columns I want and specifying the headers for each column. However, I am having some problems binding a different dataset to combo boxes I want to use for each cell in a certain column. Right now I have this code to bind the list dataset to the combo boxes in the 3rd column of the grid: GridDataBoundGrid1.Model.ColStyles(3).CellType = "ComboBox" GridDataBoundGrid1.Model.ColStyles(3).DataSource = dsList.Tables("Programs") GridDataBoundGrid1.Model.ColStyles(3).DisplayMember = "strProgram" GridDataBoundGrid1.Model.ColStyles(3).ValueMember = "intProgramID" I saw in an earlier post that there was a datagrid combo box sample, but I can't find it in the sample projects installed on my system. Any help is appreciated.

Clay Burch [Syncfusion]
Replied On September 20, 2002 05:26 AM UTC

The name of the sample is GDBGcombos. If you do not see it in your Samples folder, then I suspect you are using a release prior to the You should install this release, and try your code there. I think your code will work OK provided you are not binding the GridDataBoundGrid to the same dsList.Tables("Programs") table as the ComboBox.

Amanda Kabak
Replied On September 20, 2002 10:10 AM UTC

You're absolutely right that I didn't have the latest version installed. I see the grid combo sample now, but I'm confused about one thing: in the description for the sample, it states that everything except filling and updating the dataset was done in the designer instead of in code, but I can't figure out a way to change columns in the data bound grid control while in the designer. I've only been able to do it in code, and I don't see any instructions to do it otherwise. I've tried right-clicking, double-clicking, clicking with one hand tied behind my back. :) Any tips would be appreciated. Thanks.

Amanda Kabak
Replied On September 20, 2002 10:14 AM UTC

Oops. Think I just figured it out. The little extra options button next to the GridBoundColumns, right?

Clay Burch [Syncfusion]
Replied On September 20, 2002 01:27 PM UTC

Yes, that's it....


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.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

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

Live Chat Icon For mobile
Live Chat Icon