Home All Groups Group Topic Archive Search About

add row to empty DataGridView without selecting it?

Author
23 Nov 2007 7:07 AM
craig.wenger@gmail.com
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.

Author
23 Nov 2007 8:16 PM
Fletch
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.
Author
29 Nov 2007 7:31 PM
craig.wenger@gmail.com
On Nov 23, 2:16 pm, Fletch <Fle***@discussions.microsoft.com> wrote:
> 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.

AddThis Social Bookmark Button