Hello Telerik-Team,
we have the following code, to change the OrderIndex of our custom bounded columns
int index = 999;
int i = 0;
while (i < collection.Keys.Count-1)
{
grid.MasterTableView.GetColumnSafe(collection.Keys.ToList()[i]).OrderIndex = index;
i ++;
index++;
}
The problem is, that the first column of the collection will not be changed, because of the "-1". But when we remove the "-1", all columns go back to the old position at the beginning of the grid. We want to have our custom columns at the end of the table. (After the auto generated columns).
Can you give us a hint, to solve the problem?