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. Image for the cookie policy date
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

dropdown user control

Thread ID:





19795 Oct 4,2004 05:32 PM UTC Oct 4,2004 07:16 PM UTC WinForms 5
Tags: GridControl
Asked On October 4, 2004 05:32 PM UTC

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 05:49 PM UTC

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

Replied On October 4, 2004 06:09 PM UTC

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

Replied On October 4, 2004 06:12 PM UTC

here is my code Doc1_9052.zip

Replied On October 4, 2004 06:14 PM UTC

use this file instead Desktop_1480.zip

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

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?


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

Live Chat Icon For mobile
Live Chat Icon