Click here to Skip to main content
15,908,112 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Startup Project Pin
kubben19-Apr-07 9:49
kubben19-Apr-07 9:49 
GeneralRe: Startup Project Pin
TenmanS1420-Apr-07 1:46
TenmanS1420-Apr-07 1:46 
GeneralRe: Startup Project Pin
Dave Kreskowiak20-Apr-07 1:50
mveDave Kreskowiak20-Apr-07 1:50 
GeneralRe: Startup Project Pin
TenmanS1420-Apr-07 2:02
TenmanS1420-Apr-07 2:02 
GeneralRe: Startup Project Pin
Dave Kreskowiak20-Apr-07 1:51
mveDave Kreskowiak20-Apr-07 1:51 
GeneralRe: Startup Project Pin
kubben20-Apr-07 2:05
kubben20-Apr-07 2:05 
QuestionA problem with an array populating an unbound DGV Pin
DA_Loring19-Apr-07 6:31
DA_Loring19-Apr-07 6:31 
AnswerRe: A problem with an array populating an unbound DGV [modified] Pin
Dave Kreskowiak19-Apr-07 7:19
mveDave Kreskowiak19-Apr-07 7:19 
Using the code you've supplied, I can't duplicate the problem. I actually can't BREAK it in any way unless I fail to define the columns in the DGV before I add the rows.
With DGV1.Columns
    .Clear()
    .Add("Col1", "Column Header 1")
    .Add("Col2", "Column Header 2")
    .Add("Col3", "Column Header 3")
End With
 
Dim row() As String = {"Data 1", "Data 2", "Data 3"}
DGV1.Rows.Add(row)

Works perfectly. If you don't create the columns first, it'll bomb out with an InvalidOperationException - "No row can be added to a DataGridView control that does not have columns. Columns must be added first."

I'm using .NET 2.0... There's got to be something else about the DGV setup or about the data that we haven't seen.


Dave Kreskowiak
Microsoft MVP
Visual Developer - Visual Basic
     2006, 2007


GeneralRe: A problem with an array populating an unbound DGV Pin
DA_Loring19-Apr-07 23:48
DA_Loring19-Apr-07 23:48 
GeneralRe: A problem with an array populating an unbound DGV Pin
DA_Loring20-Apr-07 0:27
DA_Loring20-Apr-07 0:27 
GeneralRe: A problem with an array populating an unbound DGV Pin
Dave Kreskowiak20-Apr-07 2:02
mveDave Kreskowiak20-Apr-07 2:02 
QuestionIdentify Page Number of String Within RTF Document Pin
Brad Huss19-Apr-07 5:43
Brad Huss19-Apr-07 5:43 
AnswerRe: Identify Page Number of String Within RTF Document Pin
Patrick Etc.22-Apr-07 13:43
Patrick Etc.22-Apr-07 13:43 
QuestionAlfa to Bravo need help! Pin
NANCO19-Apr-07 4:46
NANCO19-Apr-07 4:46 
AnswerRe: Alfa to Bravo need help! Pin
Marcus J. Smith19-Apr-07 5:03
professionalMarcus J. Smith19-Apr-07 5:03 
AnswerRe: Alfa to Bravo need help! Pin
Colin Angus Mackay19-Apr-07 5:19
Colin Angus Mackay19-Apr-07 5:19 
AnswerRe: Alfa to Bravo need help! Pin
dptalt20-Apr-07 2:25
dptalt20-Apr-07 2:25 
QuestionHow to delete folder and its subfolders Pin
re infecta19-Apr-07 4:43
re infecta19-Apr-07 4:43 
AnswerRe: How to delete folder and its subfolders Pin
Dave Kreskowiak19-Apr-07 5:00
mveDave Kreskowiak19-Apr-07 5:00 
Questionneed to display stdout messages Pin
mduran4019-Apr-07 4:19
mduran4019-Apr-07 4:19 
AnswerRe: need to display stdout messages Pin
Dave Kreskowiak19-Apr-07 4:57
mveDave Kreskowiak19-Apr-07 4:57 
AnswerRe: need to display stdout messages Pin
sthotakura19-Apr-07 9:14
sthotakura19-Apr-07 9:14 
GeneralRe: need to display stdout messages Pin
mduran4019-Apr-07 10:23
mduran4019-Apr-07 10:23 
GeneralRe: need to display stdout messages Pin
sthotakura20-Apr-07 7:30
sthotakura20-Apr-07 7:30 
GeneralRe: need to display stdout messages Pin
mduran4020-Apr-07 7:59
mduran4020-Apr-07 7:59 

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.