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

GridControl

Thread ID:

Created:

Updated:

Platform:

Replies:

69293 Oct 23,2007 07:16 AM UTC Oct 25,2007 03:27 AM UTC WinForms 1
loading
Tags: Tools
baotq
Asked On October 23, 2007 07:16 AM UTC

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

Administrator [Syncfusion]
Replied On 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

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

;