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

How add dropdown in essential grid

I want to add drop down control when selected row is edited in essential grid

2 Replies

SI Sivakumar Syncfusion Team September 7, 2006 06:23 PM UTC

Hi Vidyanand,

You can add a dropdown control for one or all the columns based on your needs using ''Templates''.

To add a combobox when a row is in edit mode you should use ''EditItemTemplate''.

I have attached a sample, where editing a row shows Combobox for the ''CategoryName'' Column.

Here the DropDown control''s ''SelectedIndexChanged'' event is handled for each postback and the selected dropdown
value is shown in the label.

EditItemTemplate.zip


Note: The grid is connected to the ''Nwind'' Database pointing to our syncfusion virtual directory ,
so if you have any of our syncfusion version installed in your machine. this sample should run without any
modification in code, but you will have to modify the webinfo file and create this sample as a application
in your virtual directory.
This sample uses the syncfusion Essential Studio version 4.201.0.37 and .net framework version 1.1,
if the Syncfusion Version you are using is different you will have to modify the registertag prefix of the aspx page.

Best Regards,
A.Sivakumar


SI Sivakumar Syncfusion Team September 7, 2006 06:44 PM UTC

Hi Vidyaanand,

Sorry for the broken link, pleas download the sample from the below link.

EditItemTemplate.zip


Regards,
A.Sivakumar


Loader.
Live Chat Icon For mobile
Up arrow icon