Posted 22 March 2018, 4:03 am EST
We have two MDI child forms.
Both forms have grids that display the same data.
The grids are both bound to the same BindingSource.
The OperationSelectionMode is set to SingleSelect on both grids.
Clicking on a grid row in either grid shows the standard dark blue selection background color.
What we want to happen is, when a row is selected in the grid in the topmost form, the same row in the grid on the OTHER form should be highlighted as well.
HOWEVER, we cannot get the grid row in the “background” form to highlight.
We use AddSelection() to set the selection to no avail.
If we also call Spread.Focus() for the grid on the “background” form, we see the correct row gets a dotted-line selection rectangle around it but the background color for the row does not get set.
How can we get the standard row highlight to display in the grid in the “background” form?
Thanks.
– Paul