Setting a property for an object in a Form of a Grid
Posted: Sun Jul 06, 2014 3:42 pm
We currently have a transparent data grid using grouped forms, but still wanted to highlight when the user clicks on a row. So it seems that we can not use the default highlight property, so we added a Rectangle to the form group.
So we want to show the rectangle on mouse down. But we have several problems:
1.How do I select index of the group of the row so I can set ONLY the group of the selected row? I do not know how to get and set the Index of the row to the group and set set the visible property to true.
2. Also now that I created "on mousedown", The first line in the MouseUp stop working. It read dgHilitedLines as Empty
But if there is no mousedown, then everything is find.
So we want to show the rectangle on mouse down. But we have several problems:
1.How do I select index of the group of the row so I can set ONLY the group of the selected row? I do not know how to get and set the Index of the row to the group and set set the visible property to true.
Code: Select all
on mousedown
put the dgHilitedLines of group "DataGrid 1" into theLine
--How to select the index of theLine in the row Array so I can show bgHighlight
set the visible of graphic "bgHighlight" of group "DataGrid 1" to true
end mousedown
2. Also now that I created "on mousedown", The first line in the MouseUp stop working. It read dgHilitedLines as Empty
Code: Select all
put the dgHilitedLines of group "DataGrid 1" into theLine