Add new row in DataGrid

  • Thread starter Thread starter Ruby
  • Start date Start date
R

Ruby

Hi all...

I have a datagrid in web form binded with datasource, and I want to make a
new row whenever I press enter in last row and last column with insert
state.
Is that posible to make that kind of event? :)

Thank alot
Ruby
 
Hi

yes it is possible.
after binding the Datagrid... get the reference of Last col of last row and and the attribute for the event when keypress.
and in the javascript if the keypress scan code is Enter-Key then post back the form to handle event.

rajeev
 
Back
Top