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 : Nov 16th 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Cell not showing selected value from Dropdown

Thread ID:

Created:

Updated:

Platform:

Replies:

53015 Dec 7,2006 06:37 AM UTC Dec 7,2006 09:06 AM UTC WinForms 1
loading
Tags: Grouping
Pawan Adur
Asked On December 7, 2006 06:37 AM UTC

Hi haneef ,
i am dynamically setting DataSOurce in a GridCOntrolList cell as

if(cc.ColIndex==6)
{
GridDropDownGridListControlCellRenderer cr = cc.Renderer as GridDropDownGridListControlCellRenderer;

cr.ListControlPart.DataSource =dt;

}


but instead of showing selected value its showing me System.Data.DataRowView..

Administrator [Syncfusion]
Replied On December 7, 2006 09:06 AM UTC

Hi Pawan,

You need to set the DisplayMember and ValueMember property of the cell using QueryCellStyleInfo event. Here is a code snippet.

if( e.TableCellIdentity.ColIndex == 6)
{
e.Style.DisplayMember = "YourDisplayMemberName";
e.Style.ValueMember = "YourValueMemberName";
}

Best Regards,
Haneef

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

;