How to set datagrid to column 0 row 0

Posted on 2004-08-29
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 ?.
Question by:Netlink2
LVL 50

Accepted Solution

Ryan Chong earned 250 total points
ID: 11926169

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

Assisted Solution

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

Featured Post

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
allswap challenge 6 96
groovy example issue 10 97
advertisement module in core php 4 159
How to remove numeric and alpha from an alphanumeric field? 5 83
This article will show, step by step, how to integrate R code into a R Sweave document
Whether you’re a college noob or a soon-to-be pro, these tips are sure to help you in your journey to becoming a programming ninja and stand out from the crowd.
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 …
With the power of JIRA, there's an unlimited number of ways you can customize it, use it and benefit from it. With that in mind, there's bound to be things that I wasn't able to cover in this course. With this summary we'll look at some places to go…

786 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