I'm now adding the GridBoundColumn's for each column in my DataTable, but getting the same results. When I do not try to bind a an ArrayList as the datasource for the combo list, the data is displayed in the grid. When I try to set the combo list datasource, the grid data is not displayed in the cells. I'm using the following code.
for (int i=0; i
KJ
Kenneth Johnson
January 23, 2003 12:03 PM UTC
I think I found my problem. The column is defined as type string, the DisplayMember being assigned is a string type, but the ValueMember I am assigning is an int. When I drop the assignment of the int ValueMember, everything is as expected. However, I need to keep track of the string displayed to the user and the underlying integer code assigned to the string. Any suggestions on how I can accomplish this?
AD
Administrator
Syncfusion Team
January 23, 2003 09:00 PM UTC
Hi Ken,
the combobox will try to save the integer value from the ValueMember into the column. That means your underlying datatable
must accept this value. Make sure the column in your oDataTable is of type int and that the ValueMembers of the displayed
foreign table are valid values for the underlying column from oDataTable.
Stefan