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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top