I'm having an issue focusing a control after rebind of a grid.
Here is the order of events:
Open modal dialog
on dialog result ok, close and dispose dialog
add record to grid's datasource
call function to set grids datasource to the list
set focus to a textbox below the grid.
My issue occurs when i try to set focus to the textbox. On an emulator this works fine, but when deployed to the handheld, focus is set to the first row and first column of the grid, even after focus has been called on the textbox.
Code sample below:
if (frmRequestDetail.DialogResult == DialogResult.OK)
DataRow dr = frmRequestDetail.RequestDetailRow;
dgDetails.DataSource = dtDetails;
txtSN.Text = "";