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

Dynamically adding combobox to Grid

Thread ID:

Created:

Updated:

Platform:

Replies:

10892 Feb 16,2004 08:55 AM UTC Feb 16,2004 10:19 AM UTC Windows Forms 1
loading
Tags: GridControl
Administrator [Syncfusion]
Asked On February 16, 2004 08:55 AM UTC

Hi , I am populating the Combobox dynamically in the GridDataBoundGrid.I am able to populate the combobox but when i click on this cell it crashes. Please tell me the way out of this problem and possible reasons why it is coming...I am giving you the information i got while running it... Messages: Object reference not set to an instance of an object. Stack Trace: at Syncfusion.Windows.Forms.Grid.GridControlBase.OnPaint(PaintEventArgs pe) at System.Windows.Forms.Control.PaintWithErrorHandling(PaintEventArgs e, Int16 layer, Boolean disposeEventArgs) at System.Windows.Forms.Control.WmPaint(Message& m) at System.Windows.Forms.Control.WndProc(Message& m) at Syncfusion.Windows.Forms.ScrollControl.WndProc(Message& msg) at Syncfusion.Windows.Forms.Grid.GridControlBase.WndProc(Message& msg) at System.Windows.Forms.ControlNativeWindow.OnMessage(Message& m) at System.Windows.Forms.ControlNativeWindow.WndProc(Message& m) at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

Administrator [Syncfusion]
Replied On February 16, 2004 10:19 AM UTC

Here is a KB link to one way you can dynamically control the contents of one dropdown based on the values set in another using CurretnCellShowingDropDown. http://www.syncfusion.com/Support/article.aspx?id=567 Here is a sample that does it in a slightly different manner using grid.Model,QueryCellInfo. How are you trying to do it? If you cannot use one of the above techniques, can you postt a sample project showing what you are trying to do?

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.

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

;