Click here to Skip to main content
15,511,503 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: how to controll cells inside Table1DataGridView Pin
romo2213-May-12 21:35
romo2213-May-12 21:35 
GeneralRe: how to controll cells inside Table1DataGridView Pin
JohnPayton13-May-12 21:53
JohnPayton13-May-12 21:53 
GeneralRe: how to controll cells inside Table1DataGridView Pin
romo2213-May-12 22:19
romo2213-May-12 22:19 
GeneralRe: how to controll cells inside Table1DataGridView Pin
romo2213-May-12 23:16
romo2213-May-12 23:16 
GeneralRe: how to controll cells inside Table1DataGridView Pin
romo2214-May-12 10:44
romo2214-May-12 10:44 
GeneralRe: how to controll cells inside Table1DataGridView Pin
JohnPayton14-May-12 13:29
JohnPayton14-May-12 13:29 
GeneralRe: how to controll cells inside Table1DataGridView Pin
romo2214-May-12 23:27
romo2214-May-12 23:27 
GeneralRe: how to controll cells inside Table1DataGridView Pin
JohnPayton15-May-12 13:46
JohnPayton15-May-12 13:46 
I loaded the code below and it works, it's a little simplistic however by playing around with it I'm sure you can improve your skills by making adjustments. Blush | :O

Private Sub DataGridView1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles DataGridView1.Click
Dim pRowNo As Integer
pRowNo = Val(DataGridView1.SelectedCells(0).RowIndex.ToString())
If DataGridView1.Rows(pRowNo).Cells(0).Value = 1 Then
DataGridView1.Rows(pRowNo).Cells(1).Value = DataGridView1.Rows(pRowNo).Cells(2).Value
Else
DataGridView1.Rows(pRowNo).Cells(1).Value = ""
End If
End Sub
GeneralRe: how to controll cells inside Table1DataGridView Pin
romo2215-May-12 14:47
romo2215-May-12 14:47 
GeneralRe: how to controll cells inside Table1DataGridView Pin
JohnPayton15-May-12 16:47
JohnPayton15-May-12 16:47 
Questionconvert c# to vb Pin
radinabedi12-May-12 21:20
radinabedi12-May-12 21:20 
AnswerRe: convert c# to vb Pin
Duc Huy Nguyen12-May-12 23:09
Duc Huy Nguyen12-May-12 23:09 
QuestionText box problem Pin
rusydan.khir11-May-12 11:39
rusydan.khir11-May-12 11:39 
AnswerRe: Text box problem Pin
Dave Kreskowiak11-May-12 11:54
mveDave Kreskowiak11-May-12 11:54 
GeneralRe: Text box problem Pin
rusydan.khir11-May-12 17:24
rusydan.khir11-May-12 17:24 
GeneralRe: Text box problem Pin
Dave Kreskowiak12-May-12 5:19
mveDave Kreskowiak12-May-12 5:19 
AnswerRe: Text box problem Pin
Richard MacCutchan11-May-12 23:49
mveRichard MacCutchan11-May-12 23:49 
GeneralRe: Text box problem Pin
rusydan.khir13-May-12 1:55
rusydan.khir13-May-12 1:55 
GeneralRe: Text box problem Pin
Richard MacCutchan13-May-12 2:20
mveRichard MacCutchan13-May-12 2:20 
QuestionGetting error System.InvalidCastException occurred Pin
KireronThunderStone11-May-12 2:09
KireronThunderStone11-May-12 2:09 
AnswerRe: Getting error System.InvalidCastException occurred Pin
Dave Kreskowiak11-May-12 2:40
mveDave Kreskowiak11-May-12 2:40 
GeneralRe: Getting error System.InvalidCastException occurred Pin
KireronThunderStone11-May-12 10:28
KireronThunderStone11-May-12 10:28 
AnswerRe: Getting error System.InvalidCastException occurred Pin
Richard MacCutchan11-May-12 3:45
mveRichard MacCutchan11-May-12 3:45 
GeneralRe: Getting error System.InvalidCastException occurred Pin
KireronThunderStone11-May-12 10:24
KireronThunderStone11-May-12 10:24 
GeneralRe: Getting error System.InvalidCastException occurred Pin
Richard MacCutchan11-May-12 23:45
mveRichard MacCutchan11-May-12 23:45 

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.