Click here to Skip to main content
15,913,333 members
Home / Discussions / Windows Forms
   

Windows Forms

 
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 
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 
Both cases, the one commented out that doesn't work, and the one not commented out, are inside the same foreach loop, so my column indexing is not the problem. In other words, this works:
foreach (Column o in newRow.ExportLine.RecordLayout.Columns.Values)
{
    int rowIndex = dgvLayout.Rows.Count - 1;
    dgvLayout.Rows[rowIndex].Cells[cx].Value = o.ColumnValue;
    cx++;
}

while this doesn't work:
foreach (Column o in newRow.ExportLine.RecordLayout.Columns.Values)
{
    DataGridViewCell c = newRow.Cells[cx];
    newRow.Cells[cx].Value = o.ColumnValue;
    cx++;
}






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

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.