Click here to Skip to main content
14,735,092 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
How to add rows in gridview dynamically

1 solution


Update the datasource table with one more row and bind the gridview.

try this,
dim dt as DataTable = Ctype(gridView1.DataSource, DataTable)
dim dtRow as DataRow = dt.NewRow
dtRow(0) = "Value1"
dtRow(1) = "Value2" 'Till no. of columns

gridView1.DataSource = dt

hope this helps.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900