Click here to Skip to main content
15,887,683 members
Home / Discussions / C#
   

C#

 
AnswerRe: dataGridView1_CellContentClick Error Index Out of Range Pin
OriginalGriff13-Aug-10 10:39
mveOriginalGriff13-Aug-10 10:39 
GeneralRe: dataGridView1_CellContentClick Error Index Out of Range Pin
MumbleB13-Aug-10 11:02
MumbleB13-Aug-10 11:02 
GeneralRe: dataGridView1_CellContentClick Error Index Out of Range Pin
MumbleB13-Aug-10 11:18
MumbleB13-Aug-10 11:18 
GeneralRe: dataGridView1_CellContentClick Error Index Out of Range Pin
OriginalGriff13-Aug-10 22:59
mveOriginalGriff13-Aug-10 22:59 
GeneralRe: dataGridView1_CellContentClick Error Index Out of Range Pin
MumbleB14-Aug-10 3:41
MumbleB14-Aug-10 3:41 
AnswerRe: dataGridView1_CellContentClick Error Index Out of Range Pin
Luc Pattyn13-Aug-10 14:00
sitebuilderLuc Pattyn13-Aug-10 14:00 
GeneralRe: dataGridView1_CellContentClick Error Index Out of Range Pin
MumbleB13-Aug-10 21:50
MumbleB13-Aug-10 21:50 
GeneralRe: dataGridView1_CellContentClick Error Index Out of Range Pin
Luc Pattyn13-Aug-10 22:34
sitebuilderLuc Pattyn13-Aug-10 22:34 
Kwagga wrote:
string taskstring = dataGridView1[0, currentRow].Value.ToString(); /


I see two indices in that statement.
so what is the value of currentRow? and how many rows and columns are there at that point in time? (the number may vary when you have databindings). Is there a relationship between datagridview1 and dt (which you just cleared)?

you still have work to do on the observation half of my previous message!

Smile | :)
Luc Pattyn [Forum Guidelines] [Why QA sucks] [My Articles] Nil Volentibus Arduum
Please use <PRE> tags for code snippets, they preserve indentation, and improve readability.


GeneralRe: dataGridView1_CellContentClick Error Index Out of Range Pin
OriginalGriff13-Aug-10 23:03
mveOriginalGriff13-Aug-10 23:03 
AnswerRe: dataGridView1_CellContentClick Error Index Out of Range Pin
Luc Pattyn13-Aug-10 23:13
sitebuilderLuc Pattyn13-Aug-10 23:13 
GeneralRe: dataGridView1_CellContentClick Error Index Out of Range Pin
OriginalGriff13-Aug-10 23:22
mveOriginalGriff13-Aug-10 23:22 
GeneralRe: dataGridView1_CellContentClick Error Index Out of Range Pin
MumbleB14-Aug-10 4:18
MumbleB14-Aug-10 4:18 
GeneralRe: dataGridView1_CellContentClick Error Index Out of Range Pin
OriginalGriff14-Aug-10 6:06
mveOriginalGriff14-Aug-10 6:06 
GeneralRe: dataGridView1_CellContentClick Error Index Out of Range Pin
MumbleB14-Aug-10 10:00
MumbleB14-Aug-10 10:00 
GeneralRe: dataGridView1_CellContentClick Error Index Out of Range Pin
OriginalGriff14-Aug-10 23:50
mveOriginalGriff14-Aug-10 23:50 
QuestionReturn a specified item from a list box.. Pin
Tichaona J13-Aug-10 8:57
Tichaona J13-Aug-10 8:57 
AnswerRe: Return a specified item from a list box.. Pin
OriginalGriff13-Aug-10 9:06
mveOriginalGriff13-Aug-10 9:06 
GeneralRe: Return a specified item from a list box.. Pin
Ravi Bhavnani13-Aug-10 9:15
professionalRavi Bhavnani13-Aug-10 9:15 
GeneralRe: Return a specified item from a list box.. Pin
Luc Pattyn13-Aug-10 9:28
sitebuilderLuc Pattyn13-Aug-10 9:28 
GeneralRe: Return a specified item from a list box.. Pin
Ravi Bhavnani13-Aug-10 9:31
professionalRavi Bhavnani13-Aug-10 9:31 
GeneralRe: Return a specified item from a list box.. Pin
Luc Pattyn13-Aug-10 9:34
sitebuilderLuc Pattyn13-Aug-10 9:34 
GeneralRe: Return a specified item from a list box.. Pin
OriginalGriff13-Aug-10 10:10
mveOriginalGriff13-Aug-10 10:10 
GeneralRe: Return a specified item from a list box.. Pin
Luc Pattyn13-Aug-10 10:22
sitebuilderLuc Pattyn13-Aug-10 10:22 
GeneralRe: Return a specified item from a list box.. Pin
OriginalGriff13-Aug-10 10:41
mveOriginalGriff13-Aug-10 10:41 
GeneralRe: Return a specified item from a list box.. Pin
Luc Pattyn13-Aug-10 11:07
sitebuilderLuc Pattyn13-Aug-10 11:07 

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.