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.
Unfortunately, activation email could not send to your email. Please try again.

GridDataBoundGrid with combos in columns

Thread ID:

Created:

Updated:

Platform:

Replies:

41943 Mar 15,2006 09:02 AM Mar 16,2006 01:41 AM Windows Forms 1
loading
Tags: GridControl
Administrator [Syncfusion]
Asked On March 15, 2006 09:02 AM

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

Administrator [Syncfusion]
Replied On March 16, 2006 01:41 AM

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

CONFIRMATION

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.

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.

;