I have a GridView containing a TextBox in <asp:TemplateField /> and The GridView is residing inside an AJAX Update Panel.
I want to register the TextChanged Event for the textbox inside the GridView but only for the first row inside the Grid.
Is there a way to do it?
I tried binding the OnTextChangedEvent and AutoPostBack = true for TextBox, but it is firing for textbox in each row. How can I limit that TextChanged Event to only the TextBox in first row in the GridView.
Can you please help me.
Thanks and appreciate your feedback.
Perhaps you can use
GridView_RowDataBoundevent and instead of attaching event toTextBoxin aspx markup, do it via code behind: