Accessing a control within an EditItemTemplate

1 posts, 0 answers
  1. Evgeny
    Evgeny avatar
    2 posts
    Member since:
    Jun 2016

    Posted 15 Mar 2018 Link to this post


    I have a grid and one column of the grid holds two controls, ComboBox and a TextBox. The grid is in batch edit mode.

    My goal, using server side ideally but not limited to, to hide one of the controls, according to some logic.

    I've tried server side solution by hooking up an OnItemDataBound event handler, using the FindControl method of the GridDataItem control,but it resulted in null (any idea to why it may resulted in null?).

    And I've tried to hookup to some client side events of the grid with no success.

    What's the best approach to my problem?

Back to Top