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.

InitializeDropDownContainer

Thread ID:

Created:

Updated:

Platform:

Replies:

29929 Jun 7,2005 11:26 AM Jun 8,2005 05:46 AM Windows Forms 2
loading
Tags: GridControl
Mike Woolley
Asked On June 7, 2005 11:26 AM

I''m trying to create a drop down user control from a cell in a virtual grid. I''ve based my cell model and renderer on the model and renderer from the DropDownFormAndUserControl sample. However, the overriden InitializeDropDownContainer() method is never being called. I''ve registered the model with the parent grid in its constructor (added to CellModels) and I''m setting the CellType and CellValue for the cell I want to drop down in the QueryCellInfo method. The cell draws a button that I can click, but nothing seems to happen... Do you have any ideas where the problem may lie? Thanks!

Administrator [Syncfusion]
Replied On June 7, 2005 02:23 PM

Does the cell have a style.Enabled = false for some reason? If so, this would cause a problem. You might place stops in your renderer''s / model''s constructor just to see if they are being hit as expected. If you can upload a sample project showing the problem, maybe we can spot it here.

Mike Woolley
Replied On June 8, 2005 05:46 AM

Solved it! My grid was overriding OnCurrentCellActivating() and setting the column index to 0. This causes the call to HasCurrentCellAt(r, c) in GridDropDownCellImp to fail...

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.

;