This is a migrated thread and some comments may be shown as answers.

Accessing a control within an EditItemTemplate

0 Answers 48 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Evgeny
Top achievements
Rank 1
Evgeny asked on 15 Mar 2018, 01:22 PM

Hello,

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?

No answers yet. Maybe you can help?

Tags
Grid
Asked by
Evgeny
Top achievements
Rank 1
Share this question
or