Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

vb 6 grid control - add new row

Status
Not open for further replies.

tek2002

Programmer
Aug 21, 2001
67
0
0
US
i have a grid that gets loaded with data from db and i would like to give the user the ability to add a record to the grid.

cmdCreateNew_Click event has this line of code that adds a row to the grid just fine:

grdPaysched.Rows = grdPaysched.Rows + 1

i however am having dificulty highlighting the new row without having the user click on it first.

any ideas on how i can have that new row highlighted automatically upon creation regardless of what row was highlighted when the new row was being added.

thanks a bunch


 
Please Disregard.....I figured it out.

Thanks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top