DataGridView in Virtual Mode: Inserting Rows

To insert a row at a specific index when the VirtualMode property is set to true in a DataGridView control (Windows Forms, .NET 2.0), you should not just increase the RowCount property (like you would do for a simple Add operation). Instead, use the Rows.Insert(index, count) method, usually with count set to 1. This does also apply to DataTreeGridView control from DlhSoft Hierarchical Data Control Library.


About Sorin Dolha

My passion is software development, but I also like physics.
This entry was posted in Computers and Internet. Bookmark the permalink.

Add a reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s