Click here to Skip to main content
15,914,594 members
Home / Discussions / Windows Forms
   

Windows Forms

 
GeneralWhere to get menus Pin
Sun Rays27-Jan-08 21:52
Sun Rays27-Jan-08 21:52 
GeneralRe: Where to get menus Pin
John_Adams28-Jan-08 18:00
John_Adams28-Jan-08 18:00 
Generalchange format of dateTimePicker in ASp.net windows application Pin
Cuckoo27-Jan-08 19:22
Cuckoo27-Jan-08 19:22 
GeneralNegative rowIndex for new DataGridViewRow Pin
Brady Kelly27-Jan-08 2:55
Brady Kelly27-Jan-08 2:55 
GeneralRe: Negative rowIndex for new DataGridViewRow Pin
Luc Pattyn27-Jan-08 3:09
sitebuilderLuc Pattyn27-Jan-08 3:09 
GeneralRe: Negative rowIndex for new DataGridViewRow Pin
Brady Kelly27-Jan-08 3:20
Brady Kelly27-Jan-08 3:20 
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 
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;

I have checked and the number of columns is large enough. Using the same cx in the following line works fine.
dgvLayout.Rows[rowIndex].Cells[cx].Value = o.ColumnValue;



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 
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 

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.