Add databound Dropdown to Grid in C#?

2 posts, 0 answers
  1. Paul
    Paul avatar
    28 posts
    Member since:
    Feb 2012

    Posted 08 Jul 2016 Link to this post

    Hi All...

    So, I've built a Grid programmatically and databound it... so far so good.  I need to add a column containing dropdown list, which would be databound.  I need to be able to use it as an edit button so that when the selected value changed fires, it updates the particular field for that row.  I've found a number of threads similar but for the life of me, don't see this particular scenario addressed...

    I'd be very grateful for any assistance!

    Thank you!

  2. Eyup
    Eyup avatar
    4075 posts

    Posted 13 Jul 2016 Link to this post

    Hello Paul,

    You can use a GridTemplateColumn to achieve that. Check the example provided in the following section for a reference:

    Please bear in mind that the grid should be created entirely during Page_Init and the column properties should be added before adding the column to the Columns collection, as explained in the article above.

    I hope this will prove helpful.

    Telerik by Progress
    Do you need help with upgrading your ASP.NET AJAX, WPF or WinForms projects? Check the Telerik API Analyzer and share your thoughts.
Back to Top