dcsimg
Results 1 to 4 of 4

Thread: Datagridview- Add rows going up from bottom?

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Apr 2012
    Location
    California
    Posts
    133

    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

  2. #2
    Frenzied Member
    Join Date
    Oct 2012
    Location
    Tampa, FL
    Posts
    1,187

    Re: Datagridview- Add rows going up from bottom?

    You should be using the Insert method:

    Code:
    DataGridView1.Rows.Insert(0, "TEST")

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    Apr 2012
    Location
    California
    Posts
    133

    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

    Name:  p1.jpg
Views: 60
Size:  18.3 KB

    After

    Name:  p2.jpg
Views: 56
Size:  15.0 KB

  4. #4
    Frenzied Member
    Join Date
    Oct 2012
    Location
    Tampa, FL
    Posts
    1,187

    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..

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Featured


Click Here to Expand Forum to Full Width