Add row

J

James McGivney

I am looking for an article that tells how to add a row
to a datagrid or to the DataSource. The simpler and
easier the better. Step-by-step and sample code would be
a plus.
Thanks
Jim
 
J

Jeffrey Tan[MSFT]

Hi James,

Thanks for posting in this group.
Actually, a web form datagrid only renders out the html table tag to the
client, so add a new row to the datagrid is adding a <tr> to the table.
But you can done this in the server side, through adding an empty row into
the dataset and bind to the datagrid.
To place this empty row for the user input, you should place this row into
edit mode.

The article below talks about the top questions about datagrid, and it
tells you how to add New Records to a Data Source Using the DataGrid Control
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dv_vstechar
t/html/vbtchtopquestionsaboutaspnetdatagridservercontrol.asp

If you have anything unclear, please feel free to tell me.

Best regards,
Jeffrey Tan
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.
 
J

Jeffrey Tan[MSFT]

Hi James,

Do you find out how to add row in datagrid?
If you still have any concern, please feel free to let me know.

Best regards,
Jeffrey Tan
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.
 
J

James McGivney

Jeff:
Thanks for your help.
Jim
-----Original Message-----

Hi James,

Thanks for posting in this group.
Actually, a web form datagrid only renders out the html table tag to the
client, so add a new row to the datagrid is adding a
 

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

Forum statistics

Threads
473,781
Messages
2,569,615
Members
45,295
Latest member
EmilG1510

Latest Threads

Top