Hi Everyone,
I am working on a form where end user can add a new item in the form grid by clicking on 'Add New Line' button. The problem is when multiple items are added on the grid and the price of one of the items are changed, the grid re-sorts itself on the basis of ascending order. I want to disable this sorting feature.
I have come across coding examples where we can sort fields according to ascending or descending order, but there is not a single one code snippet for disabling this feature.
There is one override method called 'sort' but this method is no use of me as it only enables or disables the field header sorting.
Then there is this following code which can be used for ascending descending sorting:
public void init()
{
super();
salesLine_ds.query().dataSourceTable(tableNum(SalesLine)).addSortField(fieldNum(SalesLine, ConfirmedDLV), SortOrder::Ascending);
}
I want to disable sorting. please help !!!