I believe it's dgSelectedLine
On Oct 2, 2012, at 9:40 PM, Mark Stuart wrote:
Hi all,
I'm trying to get the first line of a loaded DataGrid to be selected.
At the end of the script that loads the DataGrid, I have the following 2
lines:
set the dgLine of grp DataGrid to 1
send
Sorry, it's dgHilitedLine or dgHilitedIndex. Then dispatch selectionChanged to
the group.
Bob
On Oct 2, 2012, at 9:40 PM, Mark Stuart wrote:
Hi all,
I'm trying to get the first line of a loaded DataGrid to be selected.
At the end of the script that loads the DataGrid, I have the
Thanx Peter and Bob for the suggestions.
LC: 4.6.4
I tried all suggestions but unfortunately, they're not working.
dgHilitedIndex sets the line to the added sequence line, which in my case is
the last line because the DataGrid is sorted descending order. The most
recent record is at the top of
Sorry Mark. Not sure why it doesn't work for you. I call set the dgHilitedLine
of group myDatagrid to 1 all the time and it does just what you would expect.
The only reason to send selectionChanged is if you are trapping for it in the
datagrid script, and want to execute some code afterwards. I
Reading the rev-list, I found a reference to:
dispatch selectionChanged to grp DataGrid with var
Notice the with var
So I've modified my command to:
put the dgHilitedIndex of grp DataGrid into firstLineNum
dispatch selectionChanged to grp DataGrid with firstLineNum
This
Hi all,
I'm trying to get the first line of a loaded DataGrid to be selected.
At the end of the script that loads the DataGrid, I have the following 2
lines:
set the dgLine of grp DataGrid to 1
send selectionChanged to grp DataGrid
I've also tried:
set the dgLine of grp
I'm a bit rusty on datagrids but shouldn't it be dghilitedline?
On Oct 2, 2012 9:40 PM, Mark Stuart mfstu...@cox.net wrote:
Hi all,
I'm trying to get the first line of a loaded DataGrid to be selected.
At the end of the script that loads the DataGrid, I have the following 2
lines: