datagrid itemtemplate textbox

  • Thread starter Thread starter kalaivanan
  • Start date Start date
K

kalaivanan

hi,
how do i handle events for datagrid itemtemplate textboxes and how do i
set tabindex for the itemtemplate textboxes.

Kalaivanan.
 
Hook the textbox's event with the handler via the appropriate event
attribute. E.g.:

<ItemTemplate>
<asp:TextBox ID="txtTax" runat="server" Text='<%#
DataBinder.Eval(Container.DataItem, "Tax") %>'
OnTextChanged="txtTax_TextChanged">
</asp:TextBox>
....

This hooks txtTax_TextChanged event handler (in code behind) with the
OnTextChanged event of the text box.

By default, tab order for the text boxes (in the grid) will be in the order
they appear in the grid (left-to-right then top-to-bottom).

hi,
how do i handle events for datagrid itemtemplate textboxes and how do i
set tabindex for the itemtemplate textboxes.

Kalaivanan.
 
Back
Top