Click here to Skip to main content
15,882,113 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Devshock.Net Pin
Richard MacCutchan13-May-12 22:48
mveRichard MacCutchan13-May-12 22:48 
AnswerRe: Devshock.Net Pin
Midnight Ahri13-May-12 23:52
Midnight Ahri13-May-12 23:52 
GeneralRe: Devshock.Net Pin
Richard MacCutchan14-May-12 0:05
mveRichard MacCutchan14-May-12 0:05 
GeneralRe: Devshock.Net Pin
Richard MacCutchan14-May-12 0:19
mveRichard MacCutchan14-May-12 0:19 
GeneralRe: Devshock.Net Pin
Luc Pattyn14-May-12 0:52
sitebuilderLuc Pattyn14-May-12 0:52 
GeneralRe: Devshock.Net Pin
Richard MacCutchan14-May-12 0:56
mveRichard MacCutchan14-May-12 0:56 
AnswerRe: Devshock.Net Pin
Dave Kreskowiak14-May-12 2:13
mveDave Kreskowiak14-May-12 2:13 
Questionhow to controll cells inside Table1DataGridView Pin
romo2213-May-12 12:58
romo2213-May-12 12:58 
Hi guys I need your smart hands to handle this code Confused | :confused:


I have three columns on (Table1DataGridView) take names: (F/T) (Last name1) (Last name2)

first column takes Bit value ( Checkedbox. true or false ) the rest of columns takes text value type.

I wonder how can I do something like this : if F/T is checked true then Last name1 equuleus the value of Last name2


I try this

VB
 Private Sub Table1DataGridView_CellContentClick(ByVal sender As System.Object, ByVal e As System.Windows.Forms.DataGridViewCellEventArgs) Handles Table1DataGridView.CellContentClick

If Table1DataGridView.Rows(0).Cells(0).Value.chcked =True Then

Table1DataGridView.Rows(0).Cells(1).Value=Table1DataGridView.Rows(0).Cells(2).Value

End if 


End sub 



then I thought I should know what is the name of F/T column and using that name to give that name my code which is las name1 = last name2

and I did this, I went to ( Edit columns option and then I copy the name of F/T column, and the Name of las nmae1,and the Name of las nmae2 ) and I did this code but I got nothing

VB
If DataGridViewCheckBoxColumn1.TrueValue Then
           DataGridViewTextBoxColumn2 = DataGridViewTextBoxColumn3

       End If



I'm not sure if can did this or it's not possible, Please if you could give hand with this I will be appreciated


thanks
AnswerRe: how to controll cells inside Table1DataGridView Pin
JohnPayton13-May-12 15:34
JohnPayton13-May-12 15:34 
GeneralRe: how to controll cells inside Table1DataGridView Pin
romo2213-May-12 16:47
romo2213-May-12 16:47 
AnswerRe: how to controll cells inside Table1DataGridView Pin
Luc Pattyn13-May-12 16:05
sitebuilderLuc Pattyn13-May-12 16:05 
GeneralRe: how to controll cells inside Table1DataGridView Pin
romo2213-May-12 16:49
romo2213-May-12 16:49 
AnswerRe: how to controll cells inside Table1DataGridView Pin
Luc Pattyn13-May-12 17:00
sitebuilderLuc Pattyn13-May-12 17:00 
GeneralRe: how to controll cells inside Table1DataGridView Pin
JohnPayton13-May-12 18:51
JohnPayton13-May-12 18:51 
GeneralRe: how to controll cells inside Table1DataGridView Pin
romo2213-May-12 20:35
romo2213-May-12 20:35 
GeneralRe: how to controll cells inside Table1DataGridView Pin
JohnPayton13-May-12 20:53
JohnPayton13-May-12 20:53 
GeneralRe: how to controll cells inside Table1DataGridView Pin
romo2213-May-12 21:19
romo2213-May-12 21:19 
GeneralRe: how to controll cells inside Table1DataGridView Pin
romo2213-May-12 22:16
romo2213-May-12 22:16 
GeneralRe: how to controll cells inside Table1DataGridView Pin
romo2214-May-12 9:44
romo2214-May-12 9:44 
GeneralRe: how to controll cells inside Table1DataGridView Pin
JohnPayton14-May-12 12:29
JohnPayton14-May-12 12:29 
GeneralRe: how to controll cells inside Table1DataGridView Pin
romo2214-May-12 22:27
romo2214-May-12 22:27 
GeneralRe: how to controll cells inside Table1DataGridView Pin
JohnPayton15-May-12 12:46
JohnPayton15-May-12 12:46 
GeneralRe: how to controll cells inside Table1DataGridView Pin
romo2215-May-12 13:47
romo2215-May-12 13:47 
GeneralRe: how to controll cells inside Table1DataGridView Pin
JohnPayton15-May-12 15:47
JohnPayton15-May-12 15:47 
Questionconvert c# to vb Pin
radinabedi12-May-12 20:20
radinabedi12-May-12 20:20 

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.