I have a form with one control a datagrid view that is bound to a table an
OK button and a close button - No navigation controls. Its just used a a
selector for a record and then opens another form, storing the primary key
of the chosen record in a global variable for later use when the user clicks
on OK.
Problem is, I display two columns in the grid and when the form opens, the
first cell in the first row always has a blue background, which leads the
user to believe that that is already the selected record, but it is not yet
selected untill the user actually clicks on the record selector. then the
two cells on the selected row show blue background.
Is it possible to have the first record in the datagridview be automatically
selected after its filled? or alternately to have the first cell not show a
blue background after its filled.
I now have code that detects whether record is selected or not in the OK
button and gives user a messagebox but its still an anoyance. I tried
setting the tab order so that the Exit button is the first control to have
focus but the first cell still says shown with blue background.
Any tricks or help would be appreciated.
Bob