Click here to Skip to main content
16,008,750 members
Home / Discussions / Windows Forms
   

Windows Forms

 
GeneralRe: Negative rowIndex for new DataGridViewRow Pin
Luc Pattyn27-Jan-08 4:04
sitebuilderLuc Pattyn27-Jan-08 4:04 
GeneralRe: Negative rowIndex for new DataGridViewRow Pin
Brady Kelly27-Jan-08 4:13
Brady Kelly27-Jan-08 4:13 
GeneralRe: Negative rowIndex for new DataGridViewRow Pin
Luc Pattyn27-Jan-08 4:35
sitebuilderLuc Pattyn27-Jan-08 4:35 
GeneralRe: Negative rowIndex for new DataGridViewRow Pin
Brady Kelly27-Jan-08 4:50
Brady Kelly27-Jan-08 4:50 
GeneralRe: Negative rowIndex for new DataGridViewRow Pin
Luc Pattyn27-Jan-08 5:40
sitebuilderLuc Pattyn27-Jan-08 5:40 
GeneralRe: Negative rowIndex for new DataGridViewRow Pin
Brady Kelly27-Jan-08 5:52
Brady Kelly27-Jan-08 5:52 
GeneralRe: Negative rowIndex for new DataGridViewRow Pin
Luc Pattyn27-Jan-08 6:29
sitebuilderLuc Pattyn27-Jan-08 6:29 
GeneralRe: Negative rowIndex for new DataGridViewRow Pin
Brady Kelly27-Jan-08 6:54
Brady Kelly27-Jan-08 6:54 
Luc Pattyn wrote:
Haven't seen anything highlighted in your past five messages. I give up.
Read my tips, especially #2.


I wrote earlier:
cx starts at 1 because the is always a default column at the leftmost side of the grid. The line that is failing is:

newRow.Cells[cx].Value = o.ColumnValue;


Thanks Luc, you have really made an effort Rose | [Rose] , but the problem is clearly with the rowIndex being -1. I have checked everything else down to the bone, just short of debugging...Oooh, I can step into the source now! Cool | :cool: Now, where was that .NET source?






QuestionBack up Pin
Member 475021323-Jan-08 11:46
Member 475021323-Jan-08 11:46 
GeneralRe: Back up Pin
John_Adams23-Jan-08 18:23
John_Adams23-Jan-08 18:23 
GeneralSet the Form Width and Height Pin
nabeelkhan21-Jan-08 21:38
nabeelkhan21-Jan-08 21:38 
GeneralRe: Set the Form Width and Height Pin
led mike22-Jan-08 4:46
led mike22-Jan-08 4:46 
GeneralRe: Set the Form Width and Height Pin
Luc Pattyn22-Jan-08 5:32
sitebuilderLuc Pattyn22-Jan-08 5:32 
GeneralRe: Set the Form Width and Height Pin
Member 46125594-Feb-08 19:00
Member 46125594-Feb-08 19:00 
Question[Message Deleted] Pin
uranus012721-Jan-08 14:24
uranus012721-Jan-08 14:24 
GeneralDouble Post - please ignore Pin
Giorgi Dalakishvili21-Jan-08 20:14
mentorGiorgi Dalakishvili21-Jan-08 20:14 
Generalnewbie in Crystal report Pin
wasimsharp21-Jan-08 1:14
wasimsharp21-Jan-08 1:14 
Generalnewbie in Crystal report Pin
wasimsharp21-Jan-08 1:14
wasimsharp21-Jan-08 1:14 
QuestionUserControl Event Handling in C#2.0 WinForm? Pin
nabeelkhan20-Jan-08 18:59
nabeelkhan20-Jan-08 18:59 
Generaldatagridview problem Pin
Naresh12345678919-Jan-08 0:27
Naresh12345678919-Jan-08 0:27 
QuestionHow to call code from a class in the form1.h [modified] Pin
thenewboy18-Jan-08 3:41
thenewboy18-Jan-08 3:41 
AnswerRe: How to call code from a class in the form1.h Pin
LongRange.Shooter1-Feb-08 9:43
LongRange.Shooter1-Feb-08 9:43 
GeneralRecommed timeline editor component Pin
Robin16-Jan-08 17:46
Robin16-Jan-08 17:46 
GeneralHiding a dialog form without it returning from ShowDialog() Pin
Jabes16-Jan-08 3:14
Jabes16-Jan-08 3:14 
GeneralRe: Hiding a dialog form without it returning from ShowDialog() Pin
John_Adams16-Jan-08 23:21
John_Adams16-Jan-08 23:21 

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.