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

Populating dropdown according to another cell

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



13 Replies

AD Administrator Syncfusion Team December 13, 2006 08:11 AM UTC

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.


HE Hema December 13, 2006 08:50 AM UTC

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


HE Hema December 13, 2006 10:10 AM UTC

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

Regards
hema


AD Administrator Syncfusion Team December 13, 2006 10:57 AM UTC

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


AD Administrator Syncfusion Team December 13, 2006 12:00 PM UTC

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


AD Administrator Syncfusion Team December 14, 2006 05:31 AM UTC

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


AD Administrator Syncfusion Team December 14, 2006 06:31 AM UTC

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.


AD Administrator Syncfusion Team December 14, 2006 07:00 AM UTC

Version of Essential Studio that we are using is 1.6.1.5

regards,
Hema


AD Administrator Syncfusion Team December 14, 2006 10:16 AM UTC

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


AD Administrator Syncfusion Team December 18, 2006 08:24 AM UTC

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


AD Administrator Syncfusion Team December 18, 2006 09:41 AM UTC

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


AD Administrator Syncfusion Team December 18, 2006 10:58 AM UTC

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


AD Administrator Syncfusion Team December 19, 2006 04:58 AM UTC

Hi Hema,

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

Best Regards,
Haneef

Loader.
Live Chat Icon For mobile
Up arrow icon