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

GridComboBoxCellRenderer SelectedItem not changed?

Thread ID:





59947 Apr 25,2007 08:20 AM UTC Apr 26,2007 03:32 PM UTC WinForms 2
Tags: GridControl
Hans Dampf
Asked On April 25, 2007 08:20 AM UTC


we have a GGC which is bound to our business object. We have made a custom cell renderer to handle that object. The value is shown in the cell (because of the ToString() method). When I click on the drop down button I can see a list of supported values. After choosing a value, the cell appears empty. I have attached a sample where you can see that issue. It would be great if somebody can help me.



Hans Dampf
Replied On April 26, 2007 06:09 AM UTC


I just wanna bring this thread up. Perhaps can somebody from syncfusion take a closer look at this issue?


haneefm [Syncfusion]
Replied On April 26, 2007 03:32 PM UTC

Hi Al,

You would have to override the ListBoxMouseUp method in a MyComboBoxCellRenderer class and set the selected value of the ListBox to cell using the below code.

protected override void ListBoxMouseUp(object sender, MouseEventArgs e)
MyObject curobj = new MyObject();
if( ListBoxPart.SelectedItem != null )
curobj.Value = ListBoxPart.SelectedItem.ToString() ;
Grid.Model[RowIndex, ColIndex].CellValue = curobj;
base.ListBoxMouseUp(sender, e);

Please refer to modified sample for more details.

Best regards,


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