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. Image for the cookie policy date
close icon

How to bind DataSOurce for one column

Hi haneef,
i have a GGC . in that there r 3 columns with Drop Down List. 2 r bound to LabelValuePair/ArrayList. i need to bind the third one with a DataTable. i tried but when i click the cell in Third column bound with DataTable instead of showing clicked value in cell it displays System.data.DataRowView.
can u help me on this plz..reply

1 Reply

AD Administrator Syncfusion Team December 7, 2006 09:20 AM UTC

Hi Pawan,

Please try this.

//For showing the DropDownButton in a Cell with DataSource.
this.gridGroupingControl1.TableDescriptor.Columns[2].Appearance.AnyRecordFieldCell.CellType = "GridListControl";
this.gridGroupingControl1.TableDescriptor.Columns[2].Appearance.AnyRecordFieldCell.DataSource = ComboTable;

//For Display the clicked value from the DropDown...
this.gridGroupingControl1.TableDescriptor.Columns[2].Appearance.AnyRecordFieldCell.DisplayMember = "ComboName";

//For getting the value from the DropDown...
this.gridGroupingControl1.TableDescriptor.Columns[2].Appearance.AnyRecordFieldCell.ValueMember = "ComboID";

Here is a sample.
GGCDataSourceColumn.zip

Best Regards,
Haneef

Loader.
Live Chat Icon For mobile
Up arrow icon