Setting Active Column in TwwDataGrid
I am relatively new to the firepower controls but have used the infopower controls for many years.
In the TwwdDBGrid control in Infopower I was able to use GetActiveField and SetActiveField to position on a specific cell in the grid. It was useful when validating input data.
I can't find a similar method using the TwwDataGrid control in Firepowerr.
How do I reposition on a specific column after validating the input?
-
Hi Leonard,
You can find the active tfield by referencing the ActiveColumn property. It returns the active column which has a field property.
If you want to move to a new column you can use the SelectedField property. You set it to the tfield that you want active.
For instance…
wwdatagrid1.SelectedField:= wwdatagrid1.datalink.dataset.fieldbyname('CustomerNo');
Best Regards,
-Roy
Please sign in to leave a comment.
Comments
1 comment