SevetusaSoate
New Member
I have been doing quite a lot with the DataGrid and really like it's power to edit and update rows etc. However, it's big weakness seems to be that it does not support adding a *new* row to the DataGrid as part of it's standard functionality.<BR><BR>What I have in mind is an 'Add New Row' button on the same form as the DataGrid which, once the DataGrid is poulated with database data, inserts an empty row into the DataGrid - this would then be automatically set to an edit state so you can enter the data for the new row.<BR>You would then hit the update (or insert) link as when editing any DataGrid row and it would then insert the new row into the database. I can do the database stuff no problem - I just need to know how best to add a new row to a datagrid.<BR><BR>I have searched the 'net high and low but can't find anything on how to go about doing this so I hope someone can help... Scott, how 'bout a tutorial on this?<BR><BR>Mike <BR>Try this <BR>http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dv_vstechart/html/vbtchtopquestionsaboutaspnetdatagridservercontrol. asp<BR><BR>hope this helpsThanks Charles - I must have missed that article when I searched for it. Anyway, I haven't tried it yet but that looks like the solution... and nice and simple too which is how we like 'em!!<BR><BR>Mike.