Reading the First Line of a DataGrid
    Mark Stuart 
    mfstuart at cox.net
       
    Wed Oct  3 12:29:32 EDT 2012
    
    
  
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 the DataGrid.
Both dgLine and dgHilitedLine select the first line in the DataGrid, which
is the desired effect.
Here's what I tried:
	set the dgLine of grp "DataGrid" to 1
	send "mouseUp" to grp "DataGrid"
	dispatch "selectionChanged" to grp "DataGrid"
and
	set the dgLine of grp "DataGrid" to 1
	dispatch "selectionChanged" to grp "DataGrid"
	--send "mouseUp" to grp "DataGrid"
Both scenarios the DataGrid selectionChanged parameter: HilitedIndex had no
value.
If you all have any other suggestions, they'll be very much welcomed.
Regards,
Mark Stuart
    
    
More information about the use-livecode
mailing list