Hi,
I'm working on an application in which several screens contain tableviews. At the moment when a screen containing a tableview appears for the first time no row is selected. I would like to be able to select the first row in the tableview programatically so that it appears selected when the user first sees the table. There should thus be no time when the table does not show a selected row. The intuitive way to do this would be to set the 'SelectedRow' property to an initial value. For example:
Dim tbvRecords as TableView
...
tbvRecords.SelectedRow = 0 'attempt to show the first row of tableview as selected
This, unfortunately, does not work. I receive an error message stating that 'SelectedRow' is read-only.
Is there some other way to do this? Perhaps by generating a click event if necessary? Thanks!
I'm working on an application in which several screens contain tableviews. At the moment when a screen containing a tableview appears for the first time no row is selected. I would like to be able to select the first row in the tableview programatically so that it appears selected when the user first sees the table. There should thus be no time when the table does not show a selected row. The intuitive way to do this would be to set the 'SelectedRow' property to an initial value. For example:
Dim tbvRecords as TableView
...
tbvRecords.SelectedRow = 0 'attempt to show the first row of tableview as selected
This, unfortunately, does not work. I receive an error message stating that 'SelectedRow' is read-only.
Is there some other way to do this? Perhaps by generating a click event if necessary? Thanks!