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.
Up arrow icon