Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Does anyone have a simple method to insert a row in a datagrid?

Status
Not open for further replies.

iRead

Programmer
Mar 12, 2004
25
US
Any help will be greatly appreciated!
I found a couple examples in VB.Net. The only examples I’ve found in C# are petty complex and convoluted in both the ASP.Net code and the .cs code. I wouldn’t imagine it should be that much different that VB.

Thank You!
iRead
 
I'm assuming that you have a DataSource set against the dataGrid - a DataTable or DataView.
It should just be a simple case of adding a DataRow to the DataTable or adding a DataRowView to a DataView - the nesly added row will then be seen in the grid.
I hope that the answer is as simple as this for you.
Steve
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top