>I am struggling with a grid and trying to understand the ActiveRow and RelativeRow properties. I think I know what their value should be, but I want to verify with a WATCH variable in debugger. If I put:
>
> ThisForm.pgfTest.Page1.grdTest.ActiveRow
>
>in as a WATCH varaible, it always displays zero? If I add a WATCH variable for a textbox from the same form and tab using:
>
> ThisForm.pgsTest.Page1.txtText.Text
>
>I can see it's value. So I don't think I am referencing the property wrong.
>
>So if I mouse down in the grid, shouldn't the ActiveRow property be updated in the WATCH variable?
The problem is that ActiveRow and ActiveColumn are available only when the Grid is focused. Once, I needed to do something with these properties and in the WHEN methods of the fields of the grid I had to write something like
ThisForm.RowNow = ThisForm.MyGrid.ActiveRow
ThisForm.ColumnNow = ThisForm.MyGrid.ActiveColumn
so I could work with ThisForm.RowNow and ThisForm.ColumnNow later.
HTH
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only