i have tried this, yet i seem to only occasionally get enter+leave events on the grid (which obviously breaks the logic). even if i have a text control in another open window - that doesnt seem to make the grid get/lose focus every time.
perhaps this is the underlying bug? i dont see why your idea wouldnt work.
perhaps i need an event on formactivated for the parent form to activate the grid?
i''ll maybe try a few things
>This seems like a bug. I will forward it to the grid architect so he can look into it.
>
>As far as a workaround until we can get it fixed in a release, you can do a fake click to get the row selected. It is not a perfect workaround as the first time, the row is selected on the mouseup instead of the normal mousedown. But the row does get selected eventually.
>
>bool inGrid = false;
>private void gridControl1_Click(object sender, EventArgs e)
>{
> if(!inGrid)
> {
> Syncfusion.Drawing.ActiveXSnapshot.FakeLeftMouseClick(this.gridControl1, this.gridControl1.PointToClient(Control.MousePosition));
> inGrid = true;
> }
>}
>
>private void InnerForm_Leave(object sender, EventArgs e)
>{
> inGrid = false;
>}
>