Keeping a MSFlexgrid highlighted when not in focus
Posted on 2003-03-05
I am using VB6.0 and an Access DB as a data storage with WIN2000. I am using a MSFlexgrid to display a list of names. Each name in the MSFlexgrid is unique. For each name listed in the MSFlexgrid, there are multiple for records in another table. So you have a one to many table structure.
I want to highlight a specific row in the MSFlexgrid and keep that row (name field in a row) highlighted while filling other boxes on the form. Currently, when I click on a specific record in the MSFlexgrid and place the cursor in another field, the MSFlexgrid comes out of focus. When this happens, the system can't find the row selected in the MSFlexgrid.
I would like to keep the MSFlexgrid highlighted while the MSFlexgrid in not in focus. When I press the submit button, the system is suppose to look for the row selected in the MSFlexgird.
Question!!! How do you keep the row of a MSFlexgrid highlighted while operating on other controls (when not in focus)?