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.

dropdown user control

Thread ID:

Created:

Updated:

Platform:

Replies:

19795 Oct 4,2004 01:32 PM Oct 4,2004 03:16 PM Windows Forms 5
loading
Tags: GridControl
Ted
Asked On October 4, 2004 01:32 PM

I''d like to create a special type of dropdown cell that displays any type of user control. For example, if i want a dropdowncell to display a listview control, that listview control has to be unique if i set several columnstyles to this cell type. What I mean is that I don''t want the same listview to popup in each of those cells. Where do i start? Thanks!

Administrator [Syncfusion]
Replied On October 4, 2004 01:49 PM

Take a look at this sample. It shows two ways to do this, one model and one modeless. Grid\Samples\In Depth\DropDownFormAndUserControlSample

Ted
Replied On October 4, 2004 02:09 PM

>Take a look at this sample. It shows two ways to do this, one model and one modeless. > >Grid\Samples\In Depth\DropDownFormAndUserControlSample I tried this example. The problem i''m having is that when i set the listviewitems for the Listview in column1, THE SAME grid is popping up in column3 with the SAME listviewitems. Column3 also has the same celltype (dropdownlistview in this case).

Ted
Replied On October 4, 2004 02:12 PM

here is my code Doc1_9052.zip

Ted
Replied On October 4, 2004 02:14 PM

use this file instead Desktop_1480.zip

Administrator [Syncfusion]
Replied On October 4, 2004 03:16 PM

In your render.OnInitialize method, you need to do what is required to initialize your user control to properly reflect what should be seen in the row and column being passed in. Does Me._Ctl.SetSelectedItems(Me.Grid.Model(aRowIndex, aColIndex).Text) properly set the listviewitems that you want to see in aColIndex?

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.

;