Click here to Skip to main content
15,900,378 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: Array, Iteration Pin
Luc Pattyn11-Nov-07 9:18
sitebuilderLuc Pattyn11-Nov-07 9:18 
Questiondatagrid data to access database Pin
mariap11-Nov-07 2:27
mariap11-Nov-07 2:27 
AnswerRe: datagrid data to access database Pin
pmarfleet11-Nov-07 3:14
pmarfleet11-Nov-07 3:14 
GeneralRe: datagrid data to access database Pin
mariap14-Nov-07 23:36
mariap14-Nov-07 23:36 
GeneralRe: datagrid data to access database Pin
pmarfleet15-Nov-07 0:13
pmarfleet15-Nov-07 0:13 
GeneralRe: datagrid data to access database Pin
pmarfleet15-Nov-07 11:30
pmarfleet15-Nov-07 11:30 
GeneralRe: datagrid data to access database Pin
pmarfleet19-Nov-07 0:07
pmarfleet19-Nov-07 0:07 
GeneralRe: datagrid data to access database Pin
mariap19-Nov-07 8:38
mariap19-Nov-07 8:38 
Paul,

I have changed the type to DataGridViewRow and now I get the error saying:

Error 1 Class 'System.Windows.Forms.DataGridViewRow' cannot be indexed because it has no default property.

####################################
For Each row In DataGridView1.Rows
dt.Rows.Add(row)
row("Label") = DataGridView1.Columns("Label")
row("Data") = DataGridView1.Columns("Value")
Next
####################################

If I take out this two lines...
row("Label") = DataGridView1.Columns(0)
row("Data") = DataGridView1.Columns(1)
... I get the database updated with: DataGridViewRow { Index=1 } up to DataGridViewRow { Index=31 } one for each record found in DataGrid; on the first column of the table.

Do I need to index each cell in DataGrid?

Thank you,

Maria
GeneralRe: datagrid data to access database Pin
pmarfleet19-Nov-07 9:01
pmarfleet19-Nov-07 9:01 
GeneralRe: datagrid data to access database Pin
mariap19-Nov-07 9:57
mariap19-Nov-07 9:57 
GeneralRe: datagrid data to access database Pin
pmarfleet19-Nov-07 10:02
pmarfleet19-Nov-07 10:02 
QuestionPaint a rectangle [modified] Pin
The ANZAC11-Nov-07 0:30
The ANZAC11-Nov-07 0:30 
AnswerRe: Paint a rectangle Pin
Guffa11-Nov-07 0:59
Guffa11-Nov-07 0:59 
GeneralRe: Paint a rectangle Pin
The ANZAC11-Nov-07 1:01
The ANZAC11-Nov-07 1:01 
AnswerRe: Paint a rectangle Pin
Guffa11-Nov-07 9:11
Guffa11-Nov-07 9:11 
GeneralRe: Paint a rectangle Pin
The ANZAC11-Nov-07 14:09
The ANZAC11-Nov-07 14:09 
GeneralRe: Paint a rectangle Pin
Luc Pattyn11-Nov-07 14:30
sitebuilderLuc Pattyn11-Nov-07 14:30 
GeneralRe: Paint a rectangle [modified] Pin
The ANZAC11-Nov-07 14:48
The ANZAC11-Nov-07 14:48 
GeneralRe: Paint a rectangle Pin
Luc Pattyn11-Nov-07 15:10
sitebuilderLuc Pattyn11-Nov-07 15:10 
GeneralRe: Paint a rectangle Pin
The ANZAC11-Nov-07 15:13
The ANZAC11-Nov-07 15:13 
GeneralRe: Paint a rectangle Pin
The ANZAC11-Nov-07 14:56
The ANZAC11-Nov-07 14:56 
GeneralRe: Paint a rectangle Pin
Luc Pattyn11-Nov-07 15:01
sitebuilderLuc Pattyn11-Nov-07 15:01 
GeneralRe: Paint a rectangle Pin
The ANZAC11-Nov-07 15:07
The ANZAC11-Nov-07 15:07 
GeneralRe: Paint a rectangle Pin
Luc Pattyn11-Nov-07 15:15
sitebuilderLuc Pattyn11-Nov-07 15:15 
GeneralRe: Paint a rectangle Pin
The ANZAC11-Nov-07 15:17
The ANZAC11-Nov-07 15:17 

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.