Programmatically remove a row in a datagridview

G

Guest

Is it possible to remove a row in a datagridview programmatically? If so,
what is the code? Thanks
 
N

Nicholas Paldino [.NET/C# MVP]

What is the data grid view bound to? Is it a data table? If so, then
you need to remove the row from the table and the view will update
appropriately.

Hope this helps.
 
G

Guest

All the values in the datagrid are inserted programmatically. That is, it's
not bounded to a database.
--
L. A. Jones


Nicholas Paldino said:
What is the data grid view bound to? Is it a data table? If so, then
you need to remove the row from the table and the view will update
appropriately.

Hope this helps.

--
- Nicholas Paldino [.NET/C# MVP]
- (e-mail address removed)

Dave said:
Is it possible to remove a row in a datagridview programmatically? If so,
what is the code? Thanks
 

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

Top