Selecting Rows programmatically in a D.G.V.
Hello, I want to select individual rows programmatically, i.e. OTHER than by clicking on that particular row in the grid ( I've got the usual 4 buttons, forward one, back one, last record and first record , like an Access D.B. navigation tool ) I can use the code as in the EXCELLENT BOOK ! That work's for the underlying Data View, i.e moving around in the table held in memory, how can I synchronise this with the actual D.G.V. displaying the data, so that it highlights the record in question ?
P.S. I've set Selection Mode on the grid to highlight an entire row, if I click on individual cells. Can this ' event' be recreated programattically in other words ? Many thanks.
|