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

Cell not showing selected value from Dropdown

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

1 Reply

AD Administrator Syncfusion Team 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

Loader.
Live Chat Icon For mobile
Up arrow icon