Datagridview- Add rows going up from bottom?
Instead of when adding a row it adds from top to bottom. How can I make rows add from bottom to top. Acending To top.
Is This Possible?. If Not, then what can I use to get this ?
I would see, when you go to the store in the self checkout screen, the rows add going up. Is That a datagridview?
Thanks
Re: Datagridview- Add rows going up from bottom?
You should be using the Insert method:
Code:
DataGridView1.Rows.Insert(0, "TEST")
2 Attachment(s)
Re: Datagridview- Add rows going up from bottom?
Thanks for your reply. The rows.insert, put the row at the top. Unless I'm doing it wrong?.
Here Is What I want to Achieve.
Before
Attachment 122725
After
Attachment 122727
Re: Datagridview- Add rows going up from bottom?
Ah I see now. I misunderstood what you wanted. I don't know if you can get that behavior out of a Datagridview. You may need to look at using a FlowLayoutPanel with a custom control..