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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

GridDataBoundGrid with combos in columns

Thread ID:





41943 Mar 15,2006 02:02 PM UTC Mar 16,2006 06:41 AM UTC WinForms 1
Tags: GridControl
Administrator [Syncfusion]
Asked On March 15, 2006 02:02 PM UTC

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 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.


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.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon 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.Close Icon