Click here to Skip to main content
16,020,103 members
Home / Discussions / Visual Basic
   

Visual Basic

 
QuestionHow do I keep track of what Line the cursor is on in a Rich Text Box? Pin
josh04769-May-07 14:03
josh04769-May-07 14:03 
AnswerRe: How do I keep track of what Line the cursor is on in a Rich Text Box? Pin
Vivek Narayanan9-May-07 17:21
Vivek Narayanan9-May-07 17:21 
QuestionSearch for text in file with wildcard Pin
al9689-May-07 12:32
al9689-May-07 12:32 
AnswerRe: Search for text in file with wildcard Pin
Christian Graus9-May-07 14:52
protectorChristian Graus9-May-07 14:52 
Questionsyntax error executescalar Pin
Hansduncan9-May-07 11:35
Hansduncan9-May-07 11:35 
AnswerRe: syntax error executescalar Pin
Guffa9-May-07 12:37
Guffa9-May-07 12:37 
QuestionCombo box assign a value CF 2.0 Pin
steve_rm9-May-07 10:00
steve_rm9-May-07 10:00 
QuestionHow to open new form from a datagridview row? Pin
Rashar9-May-07 8:52
Rashar9-May-07 8:52 
Hello,

Working in visual studio 2005, I have managed to create, setup, and populate a datagridview as follows:

Dim ds As DataSet = New DataSet
'FILL DATASET
da.Fill(ds, "qryTableReports")
ds.Locale = System.Globalization.CultureInfo.CurrentUICulture
'DISPLAY DATASET TO DATAGRIDVIEW1
DataGridView1.DataSource = ds
DataGridView1.DataMember = "qryTableReports

'SET COLUMN WIDTH
DataGridView1.Columns(0).Width = 25
DataGridView1.Columns(1).Width = 125
DataGridView1.Columns(2).Width = 50
DataGridView1.Columns(3).Width = 50
DataGridView1.Columns(4).Width = 50
DataGridView1.Columns(5).Width = 45
'*** END DATAGRIDVIEW1 SETUP

What I want to do now is to be able to select any row from my data grid, and once selected, it will open up a new form with the dataset from the row selected.

How can I accomplish this? Is the DataGridView control the best control to use in this case?

Thanks in advance.
AnswerRe: How to open new form from a datagridview row? Pin
Hansduncan9-May-07 23:28
Hansduncan9-May-07 23:28 
GeneralRe: How to open new form from a datagridview row? Pin
Rashar10-May-07 2:23
Rashar10-May-07 2:23 
GeneralRe: How to open new form from a datagridview row? Pin
Hansduncan10-May-07 4:05
Hansduncan10-May-07 4:05 
GeneralRe: How to open new form from a datagridview row? [modified] Pin
Rashar10-May-07 5:43
Rashar10-May-07 5:43 
GeneralRe: How to open new form from a datagridview row? Pin
Hansduncan10-May-07 8:21
Hansduncan10-May-07 8:21 
Questionsystem shutdown Pin
M269-May-07 7:13
M269-May-07 7:13 
AnswerRe: system shutdown Pin
Dave Kreskowiak9-May-07 7:20
mveDave Kreskowiak9-May-07 7:20 
Generalok ... this is my code Pin
M2610-May-07 6:19
M2610-May-07 6:19 
GeneralRe: ok ... this is my code Pin
Dave Kreskowiak10-May-07 12:37
mveDave Kreskowiak10-May-07 12:37 
QuestionPlay Midi File/MP3 from Application Pin
RichardBerry9-May-07 4:33
RichardBerry9-May-07 4:33 
AnswerRe: Play Midi File/MP3 from Application Pin
Dave Kreskowiak9-May-07 6:24
mveDave Kreskowiak9-May-07 6:24 
GeneralRe: Play Midi File/MP3 from Application Pin
RichardBerry9-May-07 22:47
RichardBerry9-May-07 22:47 
GeneralPrint DataSet (DataGrid) Pin
moiid639-May-07 4:10
moiid639-May-07 4:10 
GeneralRe: Print DataSet (DataGrid) Pin
Dave Kreskowiak9-May-07 4:48
mveDave Kreskowiak9-May-07 4:48 
QuestionPlease Help!! Please Pin
tcombs079-May-07 3:07
tcombs079-May-07 3:07 
AnswerRe: Please Help!! Please Pin
SimulationofSai9-May-07 4:18
SimulationofSai9-May-07 4:18 
GeneralRe: Please Help!! Please Pin
tcombs0710-May-07 8:00
tcombs0710-May-07 8:00 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.