auto-highlight row in datagrid

jonathen

Member
Joined
May 12, 2005
Messages
17
Programming Experience
1-3
Hi Guys,

I need help again! I cannot seem to get my datagrid to do what I want. When I run my form, the first row is selected (that's fine) but the first cell is selected with a cursor in it (not fine) whereas I'd rather either no cell or row is selected, or the first row is highlighted (no cursor).

When I click on another row, the row is fully selected which is what I want, but I can't get it to auto-highlight the first row.

I have attached 2 screenshots - 1.gif is the default view when running the form, with the cursor on the cell. 2.gif is the highlighted row when clicked on it. I want to have that automatically when running the form.

Hope this makes sense - any help appreciated. Thanks,

Jon
 

Attachments

  • 1.gif
    1.gif
    2.9 KB · Views: 903
  • 2.gif
    2.gif
    2.9 KB · Views: 892
i have some similar question...
for example i have a table name empdetail
inside have ID, Name and Positoin
1001, Lee, Manager
in vb.net
inside the from has txtID,txtname and txtpositon
now when i type 1001 in txtid than enter...
the txtname will show Lee and txtposition will show Manager

how can i write like that
i'm using VB.NET and MySQL
hope u guys can understand my poor english..
thanks ya....
 
Back
Top