Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

When creating a new line in a grid, is there a way to have it create at the bottom instead of the middle of the grid?

Is there a way during record creation (Ctrl+N) to have the line be created automatically at the end of the grid instead of right in the middle?

I know this is just visually where it creates it, but it still creates some confusion.

This is what I've done so far on the datasource, but it's not working right:

public void create(boolean _append = false)
{
    this.setPosition(MyTable.RowCount());

    super(_append);
}
like image 208
Alex Kwitny Avatar asked Oct 19 '25 17:10

Alex Kwitny


1 Answers

Ah figured it out. Just had to check MSDN.

public void create(boolean _append = true)
{
    this.last();
    super(_append);
}
like image 194
Alex Kwitny Avatar answered Oct 22 '25 08:10

Alex Kwitny