add row to empty DataGridView without selecting it?

  • Thread starter Thread starter craig.wenger
  • Start date Start date
C

craig.wenger

Does anybody know how to do this? It seems like it should be easy but
it is proving not to be. The MultiSelect property is set to True and
SelectionMode is FullRowSelect on my DataGridView, in case it matters.
 
Instead of trying to add rows to the DGV, since your grid is assumably tied
to a data source, you should add the row to your data source so that the DGV
can do its own updating.
 
Instead of trying to add rows to the DGV, since your grid is assumably tied
to a data source, you should add the row to your data source so that the DGV
can do its own updating.

I am actually *not* using databinding to my DGV in this case, for
maximum flexibility.
 

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

Back
Top