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
close icon

GridControl

Hi, all
I have a problem but I can't resolve. Please help me.
I have a gridcontrol with a cell is CellType="GridListControl" that it list products. I want to when i click the item on the dropdowlist, the unit price of this product is display on the other cell.Thanks for yours answer

1 Reply

AD Administrator Syncfusion Team October 25, 2007 03:27 AM UTC

Hi Baotq,

Thank you for your interest in Syncfusion products.

You can display the selected value of dropdown GridListControl in another cell of GridControl by accessing GridDropDownGridListControlCellRenderer class.

The following code snippet illustrates this.

[C#]

private void gridControl1_CurrentCellShowingDropDown(object sender, Syncfusion.Windows.Forms.Grid.GridCurrentCellShowingDropDownEventArgs e)
{
GridDropDownGridListControlCellRenderer listRenderer = (GridDropDownGridListControlCellRenderer)this.gridControl1.GetCellRenderer(3, 3);
this.gridControl1[1, 1].CellValue = listRenderer.ListControlPart.SelectedValue;
}

Here is a sample for your reference.

http://websamples.syncfusion.com/samples/Grid.Windows/F69293/main.htm

Please let me know if you have any other queries.

Regards,
Jaya

Loader.
Live Chat Icon For mobile
Up arrow icon