Solved

How to set datagrid to column 0 row 0

Posted on 2004-08-29
2
232 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 51

Accepted Solution

by:
Ryan Chong earned 250 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 250 total points
ID: 11931439
Dim myCell As New DataGridCell()
myCell.RowNumber = 0
myCell.ColumnNumber = 0
dataGrid1.CurrentCell = myCell
dataGrid1.SetFocus
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

This article will show, step by step, how to integrate R code into a R Sweave document
This article will inform Clients about common and important expectations from the freelancers (Experts) who are looking at your Gig.
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 …
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

830 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