Click here to Skip to main content
15,905,612 members
Home / Discussions / Database
   

Database

 
Questionlooking for converting tool from one database to another Pin
E_Gold8-Oct-09 23:59
E_Gold8-Oct-09 23:59 
AnswerRe: looking for converting tool from one database to another Pin
Not Active9-Oct-09 1:20
mentorNot Active9-Oct-09 1:20 
AnswerRe: looking for converting tool from one database to another Pin
David Skelly9-Oct-09 2:39
David Skelly9-Oct-09 2:39 
Questionsense these changes immediately and notify my program Pin
reza assar8-Oct-09 23:44
reza assar8-Oct-09 23:44 
AnswerRe: sense these changes immediately and notify my program Pin
εїзεїзεїз9-Oct-09 4:39
εїзεїзεїз9-Oct-09 4:39 
QuestionRe: sense these changes immediately and notify my program Pin
reza assar11-Oct-09 17:05
reza assar11-Oct-09 17:05 
AnswerRe: sense these changes immediately and notify my program Pin
Ashfield12-Oct-09 3:49
Ashfield12-Oct-09 3:49 
QuestionDataGridView Access Problem [modified] Pin
Grollub8-Oct-09 9:11
Grollub8-Oct-09 9:11 
Hello,

I have been working with VB ADO for some time using Visual Studio 2003 and created several applications connecting to Excel with ADO. However, I have moved to Visual Studio 2008 now and have run into some trouble with the new DatagridView in the latest .NET version. Let me step through the process.

Upon 'Form_Load', I connect to my database, fill the dataset, bind it to my DataGridView in a different Form named, which is publicly defined and created upon startup. I utilize the DataGridView values to populate several text boxes and richtextboxes based upon the data. This is all working great.

The problem came when I tried to create other controls to manipulate this datagridView. The lines I am using to access this are:

Form2.DataGridView1.Item("ColumnName", CurrentRecordRow).Value()

Whenever I try this same line of code through a different subroutine (a button click for example) I get an index out of array error.

Through some troubleshooting, I have managed to discover that the 'RowCount' property of the DataGridView changes to '0' when outside the Form_load subroutine where I populate the DataGridView from the created dataset. (in the FormLoad, the rowcount is 236, when I click a button that shoots a messagebox with the Rowcount again, it says its 0)

This explains the 'index' fatal error generated, but not why the data seems suddenly 'gone' once the form has loaded?

Can anyone make a recommendation of what I may be doing wrong in accessing the data within this DataGridView?

thanks,

Grollub

modified on Thursday, October 8, 2009 3:35 PM

AnswerRe: DataGridView Access Problem Pin
Mycroft Holmes8-Oct-09 20:00
professionalMycroft Holmes8-Oct-09 20:00 
GeneralRe: DataGridView Access Problem Pin
Grollub9-Oct-09 4:05
Grollub9-Oct-09 4:05 
GeneralRe: DataGridView Access Problem Pin
Mycroft Holmes9-Oct-09 11:45
professionalMycroft Holmes9-Oct-09 11:45 
Questionstandard SqlServer 2008 Pin
ali_reza_zareian8-Oct-09 8:43
ali_reza_zareian8-Oct-09 8:43 
AnswerRe: standard SqlServer 2008 Pin
Mycroft Holmes8-Oct-09 20:03
professionalMycroft Holmes8-Oct-09 20:03 
AnswerRe: standard SqlServer 2008 Pin
εїзεїзεїз10-Oct-09 1:01
εїзεїзεїз10-Oct-09 1:01 
QuestionProblem in Query Pin
nagendrathecoder7-Oct-09 21:30
nagendrathecoder7-Oct-09 21:30 
AnswerRe: Problem in Query Pin
εїзεїзεїз7-Oct-09 21:58
εїзεїзεїз7-Oct-09 21:58 
AnswerRe: Problem in Query Pin
Mycroft Holmes7-Oct-09 22:26
professionalMycroft Holmes7-Oct-09 22:26 
GeneralRe: Problem in Query Pin
εїзεїзεїз7-Oct-09 23:03
εїзεїзεїз7-Oct-09 23:03 
GeneralRe: Problem in Query Pin
Ashfield8-Oct-09 1:23
Ashfield8-Oct-09 1:23 
QuestionSql Server Access Pin
anishkannan7-Oct-09 19:17
anishkannan7-Oct-09 19:17 
AnswerRe: Sql Server Access Pin
εїзεїзεїз7-Oct-09 22:04
εїзεїзεїз7-Oct-09 22:04 
AnswerRe: Sql Server Access Pin
Mycroft Holmes7-Oct-09 22:30
professionalMycroft Holmes7-Oct-09 22:30 
QuestionHow to write IF Condition in Stored Procedure Pin
Abhishek Boga7-Oct-09 14:06
Abhishek Boga7-Oct-09 14:06 
AnswerRe: How to write IF Condition in Stored Procedure Pin
Not Active7-Oct-09 14:17
mentorNot Active7-Oct-09 14:17 
AnswerRe: How to write IF Condition in Stored Procedure Pin
Not Active7-Oct-09 14:20
mentorNot Active7-Oct-09 14: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.