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.

Cell not showing selected value from Dropdown

Thread ID:

Created:

Updated:

Platform:

Replies:

53015 Dec 7,2006 01:37 AM Dec 7,2006 04:06 AM Windows Forms 1
loading
Tags: Grouping
Pawan Adur
Asked On December 7, 2006 01:37 AM

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 04:06 AM

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.

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.

;