Improve company productivity with a Business Account.Sign Up

x
?
Solved

How to set datagrid to column 0 row 0

Posted on 2004-08-29
2
Medium Priority
?
252 Views
Last Modified: 2010-04-17
How do I set a datagrid so that the focussed or active grid or the cursor is at 0,0 in visual basic ?.
0
Comment
Question by:Netlink2
2 Comments
 
LVL 56

Accepted Solution

by:
Ryan Chong earned 750 total points
ID: 11926169
Try:

Private Sub Command1_Click()
    DataGrid1.Row = 0
    DataGrid1.col = 0
    DataGrid1.SetFocus
End Sub
0
 
LVL 3

Assisted Solution

by:IceColdas
IceColdas earned 750 total points
ID: 11931439
Dim myCell As New DataGridCell()
myCell.RowNumber = 0
myCell.ColumnNumber = 0
dataGrid1.CurrentCell = myCell
dataGrid1.SetFocus
0

Featured Post

What Kind of Coding Program is Right for You?

There are many ways to learn to code these days. From coding bootcamps like Flatiron School to online courses to totally free beginner resources. The best way to learn to code depends on many factors, but the most important one is you. See what course is best for you.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

When you see single cell contains number and text, and you have to get any date out of it seems like cracking our heads.
What do responsible coders do? They don't take detrimental shortcuts. They do take reasonable security precautions, create important automation, implement sufficient logging, fix things they break, and care about users.
Starting up a Project
Loops Section Overview

606 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question