GridDataBoundGrid with combos in columns

Hi I''ve encountered a problem which I hope somebody may be able to resolve. I have a form which has a GridDataBoundGrid in it. The first column of this grid contains combos. I specify this combo as follows in OnLoad: Me.gbcTargetType.StyleInfo.CellType = "ComboBox" Me.gbcTargetType.StyleInfo.CellValueType = GetType(String) Me.gbcTargetType.StyleInfo.DataSource = m_ds.Tables("TableA") Me.gbcTargetType.StyleInfo.DisplayMember = "Name" '' field to display Me.gbcTargetType.StyleInfo.ValueMember = "UID_A" '' key to attach Me.gbcTargetType.StyleInfo.DropDownStyle = GridDropDownStyle.Exclusive Me.gbcTargetType.MappingName = "FK_A" I can enter the form, pull down the combos in the grid and select various items. It works perfectly! HOWEVER, if I close the form and then re-open it, add a new entry in the grid by pulling down a new combo entry in the last row, click anywhere else on the grid, I get the following: "Object reference not set to an instance of an object" This is very strange! Why should it work the first time but not the second. The database has not been changed so the data should be the same. Any ideas? Dave

1 Reply

AD Administrator Syncfusion Team March 16, 2006 06:41 AM UTC

Hi Dave, We have updated your incident #24247 for this query. So, please refer to your incident for the solution. Best regards, Madhan.

Loader.
Up arrow icon