Add new row in DataGrid

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
 
R

Rajeev Soni

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
 

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

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top