Click here to Skip to main content
11,640,626 members (60,036 online)

Visual Basic

 
QuestionIs it possible to change Import directives dynamically at run time. Pin
Member 342716218-Dec-12 10:32
memberMember 342716218-Dec-12 10:32 
AnswerRe: Is it possible to change Import directives dynamically at run time. Pin
Eddy Vluggen18-Dec-12 21:57
memberEddy Vluggen18-Dec-12 21:57 
Questionconcatenate 2 scripts Pin
Nitro7617-Dec-12 2:54
memberNitro7617-Dec-12 2:54 
AnswerRe: concatenate 2 scripts Pin
Eddy Vluggen18-Dec-12 21:55
memberEddy Vluggen18-Dec-12 21:55 
Questionsystem.net.mail - manage multiple attachment Pin
alejx14-Dec-12 13:00
memberalejx14-Dec-12 13:00 
AnswerRe: system.net.mail - manage multiple attachment Pin
Eddy Vluggen17-Dec-12 1:17
memberEddy Vluggen17-Dec-12 1:17 
QuestionHelp with Class Library and "Roll Your Own MsgBox" Pin
w4uoa13-Dec-12 5:19
memberw4uoa13-Dec-12 5:19 
AnswerRe: Help with Class Library and "Roll Your Own MsgBox" Pin
Simon_Whale13-Dec-12 5:38
memberSimon_Whale13-Dec-12 5:38 
AnswerRe: Help with Class Library and "Roll Your Own MsgBox" Pin
Richard MacCutchan13-Dec-12 5:40
mvpRichard MacCutchan13-Dec-12 5:40 
Questionnewbie Pin
vaskoedo12-Dec-12 2:16
membervaskoedo12-Dec-12 2:16 
AnswerRe: newbie Pin
Eddy Vluggen12-Dec-12 3:02
memberEddy Vluggen12-Dec-12 3:02 
QuestionExcel.XlChartType.xlLine chart not draw using VB.Net Pin
D.Manivelan11-Dec-12 19:32
memberD.Manivelan11-Dec-12 19:32 
AnswerRe: Excel.XlChartType.xlLine chart not draw using VB.Net Pin
Eddy Vluggen12-Dec-12 3:00
memberEddy Vluggen12-Dec-12 3:00 
QuestionMake a DataGridView column editable Pin
John Waclawski11-Dec-12 11:01
memberJohn Waclawski11-Dec-12 11:01 
I've been at this on/off for about a week now. I put it to the side & move onto other things and now I'm back to it.
I have a datagridview (dgvScheduleInfo). In its properties I have the "ReadOnly" set to true. I have 6 columns (0-5). The last column ("Notes") I want to make editable if someone clicks on a "Edit Notes" button. Sounds simple enough.

I've used the following code to no avail:
dgvScheduleInfo.Columns(5).ReadOnly = False

I've tried:
dgvScheduleInfo.Columns("Notes").ReadOnly = False

The code above errors out with a "Object reference not set to an instance of an object." even though when I step through the code it shows "Notes" as the name.

I've tried hard-coding a value for testing purposes:
dgvScheduleInfo.Rows(3).Cells(5).ReadOnly = False

and that hasn't worked.

And this is ultimately what I want to work:
dgvScheduleInfo.Rows(dgvScheduleInfo.CurrentRow.Index).Cells(5).ReadOnly = False

When I step through the code, I only get an error on the one I specified. Other then that though the code steps through fine but does not set the column I'm requesting to be editable.

Now yet another curveball...
If I use:
dgvScheduleInfo.ReadOnly = False

It works fine but turns ALL the cells on which I don't want. I only want the "Notes" (or column 5) to be editable.

I've changed the "EditMode" to a couple of different things as well. Nothing.

Hopefully it's something very easy I'm missing.

I haven't changed any of the properties on the datagridview control when I dropped it on my form either. Also I'm using a tableadapter and dataset to populate my datagridview.

The only code in my command button is what I've stated above.

Thanks for any help on this.
AnswerRe: Make a DataGridView column editable Pin
Eddy Vluggen12-Dec-12 2:58
memberEddy Vluggen12-Dec-12 2:58 
Questionportability/deployment, VB/Database Pin
Member 838594911-Dec-12 4:34
memberMember 838594911-Dec-12 4:34 
AnswerRe: portability/deployment, VB/Database Pin
Eddy Vluggen11-Dec-12 4:51
memberEddy Vluggen11-Dec-12 4:51 
GeneralRe: portability/deployment, VB/Database Pin
Member 838594911-Dec-12 5:04
memberMember 838594911-Dec-12 5:04 
QuestionUSBMuxd Pin
D_Wilbur10-Dec-12 9:19
memberD_Wilbur10-Dec-12 9:19 
AnswerRe: USBMuxd Pin
Eddy Vluggen11-Dec-12 2:24
memberEddy Vluggen11-Dec-12 2:24 
Questionneed vb.net DMS system Pin
Member 967170910-Dec-12 0:10
memberMember 967170910-Dec-12 0:10 
AnswerRe: need vb.net DMS system Pin
Dave Kreskowiak10-Dec-12 2:21
mvpDave Kreskowiak10-Dec-12 2:21 
GeneralRe: need vb.net DMS system Pin
Simon_Whale11-Dec-12 5:36
memberSimon_Whale11-Dec-12 5:36 
AnswerRe: need vb.net DMS system Pin
Paul Conrad13-Dec-12 8:56
memberPaul Conrad13-Dec-12 8:56 
AnswerRe: need vb.net DMS system Pin
PrissySC26-Dec-12 2:48
memberPrissySC26-Dec-12 2:48 
Questionparent/child bindingsource save new fails Pin
PrissySC8-Dec-12 11:03
memberPrissySC8-Dec-12 11:03 
AnswerRe: parent/child bindingsource save new fails Pin
Eddy Vluggen11-Dec-12 2:21
memberEddy Vluggen11-Dec-12 2:21 
GeneralRe: parent/child bindingsource save new fails Pin
PrissySC26-Dec-12 2:47
memberPrissySC26-Dec-12 2:47 
Questionread mail from yahoo using yahoo api in vb.net Pin
puvanar7-Dec-12 23:01
memberpuvanar7-Dec-12 23:01 
AnswerRe: read mail from yahoo using yahoo api in vb.net Pin
Eddy Vluggen9-Dec-12 23:14
memberEddy Vluggen9-Dec-12 23:14 
QuestionMissing Toolbar Pin
No-e6-Dec-12 6:09
memberNo-e6-Dec-12 6:09 
AnswerRe: Missing Toolbar Pin
Peter_in_27806-Dec-12 13:08
memberPeter_in_27806-Dec-12 13:08 
AnswerRe: Missing Toolbar Pin
Eddy Vluggen6-Dec-12 14:23
memberEddy Vluggen6-Dec-12 14:23 
QuestionHow to insert xml to dataset.xsd using vb.net? Pin
Akbarblack5-Dec-12 19:20
memberAkbarblack5-Dec-12 19:20 
QuestionDrawing an image onto a form Pin
tuffhamster2-Dec-12 8:13
membertuffhamster2-Dec-12 8:13 
AnswerRe: Drawing an image onto a form Pin
Eddy Vluggen3-Dec-12 0:53
memberEddy Vluggen3-Dec-12 0:53 
Questionprogramming thesis VB.net Pin
enzomatriz30-Nov-12 14:48
memberenzomatriz30-Nov-12 14:48 
AnswerRe: programming thesis VB.net Pin
Dave Kreskowiak1-Dec-12 3:17
mvpDave Kreskowiak1-Dec-12 3:17 
AnswerRe: programming thesis VB.net Pin
Zaf Khan1-Dec-12 10:01
memberZaf Khan1-Dec-12 10:01 
QuestionTAPI3 Call Id ?? Pin
trashambishion30-Nov-12 11:20
membertrashambishion30-Nov-12 11:20 
AnswerRe: TAPI3 Call Id ?? Pin
Eddy Vluggen30-Nov-12 23:36
memberEddy Vluggen30-Nov-12 23:36 
GeneralRe: TAPI3 Call Id ?? Pin
trashambishion4-Dec-12 9:30
membertrashambishion4-Dec-12 9:30 
GeneralRe: TAPI3 Call Id ?? Pin
Eddy Vluggen4-Dec-12 10:12
memberEddy Vluggen4-Dec-12 10:12 
GeneralRe: TAPI3 Call Id ?? Pin
trashambishion6-Dec-12 12:19
membertrashambishion6-Dec-12 12:19 
QuestionLoad pdf into picturebox binding to dataset Pin
waner michaud30-Nov-12 9:10
memberwaner michaud30-Nov-12 9:10 
AnswerRe: Load pdf into picturebox binding to dataset Pin
Dave Kreskowiak30-Nov-12 12:43
mvpDave Kreskowiak30-Nov-12 12:43 
GeneralRe: Load pdf into picturebox binding to dataset Pin
waner michaud4-Dec-12 9:13
memberwaner michaud4-Dec-12 9:13 
GeneralRe: Load pdf into picturebox binding to dataset Pin
Dave Kreskowiak4-Dec-12 12:31
mvpDave Kreskowiak4-Dec-12 12:31 
QuestionSaving a form and its contents as an image Pin
tuffhamster30-Nov-12 4:37
membertuffhamster30-Nov-12 4:37 
AnswerRe: Saving a form and its contents as an image Pin
Eddy Vluggen30-Nov-12 23:41
memberEddy Vluggen30-Nov-12 23:41 

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

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


Advertise | Privacy | Mobile
Web03 | 2.8.150731.1 | Last Updated 1 Aug 2015
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid