Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

How to set datagrid to column 0 row 0

Posted on 2004-08-29
2
Medium Priority
?
250 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 54

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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Whether you've completed a degree in computer sciences or you're a self-taught programmer, writing your first lines of code in the real world is always a challenge. Here are some of the most common pitfalls for new programmers.
In real business world data are crucial and sometimes data are shared among different information systems. Hence, an agreeable file transfer protocol need to be established.
In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…
In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …

824 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