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.

Populating dropdown according to another cell

Thread ID:

Created:

Updated:

Platform:

Replies:

53383 Dec 13,2006 01:21 AM Dec 18,2006 11:58 PM Windows Forms 13
loading
Tags: GridControl
Hema
Asked On December 13, 2006 01:21 AM

Hi,

I have a grid with 4 Columns. First column is a checkbox,2 and 3rd are static and 4th one is a dropdown. I have to populate my dropdown
according to the 3 rd cell.My 3rd cell shows Datatype.
In my fourth cell i have to populate some functions.
like for int the functions will be Round,ceil,sum.....

I tried to do this in 4th cell click.
so i written my code in cell_click event of that grid.
My Grid is a data source binded.

when i clicking 4 cell in the firstrow it's populating correctly.
But when i clicking 4 th cell in any other row the dropdown populates correct functions plus the functions of already selected rows.

ex-
In my firstrow 3rd cell is int.The dropdown populates sum,int,round,max....

In my 3row 3rd cell is datetime. The dropdown populates like
dateadd,datediff,sum,int,round,max....

Please help me to do this.

Regards
Hema



Administrator [Syncfusion]
Replied On December 13, 2006 03:11 AM

Hi Hema,
Please refer this KB article and let us know if this helps.
How do I change the DataSource of one ComboBox cell depending upon the value selected in another ComboBox cell in a GridDataBoundGrid?
Thanks for choosing and using Syncfusion Products.
Best Regards,
Jeba.

Hema
Replied On December 13, 2006 03:50 AM

Thanks for your Reply.

In my situation my dropdown needs display member and display value.

I think i can't use choicelist in this case.

Regards
Hema

Hema
Replied On December 13, 2006 05:10 AM

is there a way to use dropdown with displaymember and valuemember in my situation.

Regards
hema

Administrator [Syncfusion]
Replied On December 13, 2006 05:57 AM

Hi Hema
Please refer this sample and let us know if this helps.
GDBG_DisplayValue.zip
Best Regards,
Jeba.

Administrator [Syncfusion]
Replied On December 13, 2006 07:00 AM

I dont have the dlls required for running the code you sent.
It would be useful if you send me the dlls also.

Thanks and regards,
Hema

Administrator [Syncfusion]
Replied On December 14, 2006 12:31 AM

I dont have the dlls required for running the code you sent.
It would be useful if you send me the dlls also.

Thanks and regards,
Hema

Administrator [Syncfusion]
Replied On December 14, 2006 01:31 AM

Hi Hema,

Please let me know which version of Essential Studio are you installing on your machine.

Best Regards,
Haneef

Note: The above attached sample was developed in VS.Net with Essentail Studio 4.4.

Administrator [Syncfusion]
Replied On December 14, 2006 02:00 AM

Version of Essential Studio that we are using is 1.6.1.5

regards,
Hema

Administrator [Syncfusion]
Replied On December 14, 2006 05:16 AM

Hi Hema,

Please try the following steps to resolve this.

1)Open the project file from the attached sample
attached sample
2) Delete the all syncfusion references using Solution Explorer.
3) Add the reference Syncfusion.Grid.dll from GAC.
4) Add the reference Syncfusion.Base.dll from GAC.
5) Run the sample.

Let me know if this helps.

Best Regards,
Haneef

Administrator [Syncfusion]
Replied On December 18, 2006 03:24 AM

Hi,

Iam able to run the sample. My problems is for each cell click i have to populate my dropdown according to another cell in the Grid. It won't be static.


Please help to solve this issue.

Regards
hema

Administrator [Syncfusion]
Replied On December 18, 2006 04:41 AM

Hi Hema,

Here is a minimal sample that show you to change the datasource of combobox cell depending upon the value present in another(3rd) cell.
ChangeChoiceListonCell.zip

Best Regards,
Haneef

Administrator [Syncfusion]
Replied On December 18, 2006 05:58 AM

Thanks for ur Reply.

I need displaymember and valuemember for my dropdown. My dropdown is a datasource binded.
Please Suggest me solve this issue.

Regards
Hema

Administrator [Syncfusion]
Replied On December 18, 2006 11:58 PM

Hi Hema,

Please try the attached sample and let me know if you are looking something different.
ModifiedChangeChoiceListonCell.zip

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.

;