Prepend new rows to DataGridView instead of append?

Just like the subject says, I'm looking for a method to prepend new rows to a data-bound datagridview instead of the default append.

Thanks in advance for any advice.

[182 byte] By [AnthonyatBeckman] at [2007-12-24]
# 1
Have you tried using DataGridView.Rows.Insert(index, row)? This should work if you set index to zero I think.
Matty4242 at 2007-10-8 > top of Msdn Tech,Windows Forms,Windows Forms General...
# 2

Hi,

Is your problem solved?

Thank you,
Bhanu.

BhanuPrakashNunna-MSFT at 2007-10-8 > top of Msdn Tech,Windows Forms,Windows Forms General...
# 3

hello

I have the same requirement, but your suggestion doesn't work with databound datagridview.

Error msg - you cannot add rows to a bound datagridview.

so whats the solution to this?

thanks.

dsani at 2007-10-8 > top of Msdn Tech,Windows Forms,Windows Forms General...
# 4
When you data-bind to a grid, you can only display rows from the datasource. So the solution is to add new rows to your datasource.
CommonGenius.com at 2007-10-8 > top of Msdn Tech,Windows Forms,Windows Forms General...