Click here to Skip to main content
15,891,184 members
Home / Discussions / C#
   

C#

 
AnswerI found a bug in .net Pin
Amar Chaudhary30-Sep-06 10:11
Amar Chaudhary30-Sep-06 10:11 
GeneralRe: I found a bug in .net Pin
Amar Chaudhary30-Sep-06 10:15
Amar Chaudhary30-Sep-06 10:15 
QuestionI have a strange with my computers. I chose C# because that is what I mostly do! Pin
Just me at will_george...something30-Sep-06 7:08
Just me at will_george...something30-Sep-06 7:08 
Questionredirecting output from an unmanaged console application Pin
erikash30-Sep-06 5:25
erikash30-Sep-06 5:25 
AnswerRe: redirecting output from an unmanaged console application Pin
umseker30-Sep-06 9:43
umseker30-Sep-06 9:43 
AnswerRe: redirecting output from an unmanaged console application Pin
S. Senthil Kumar1-Oct-06 9:41
S. Senthil Kumar1-Oct-06 9:41 
QuestionFormatting a single datagridview cell??? Pin
printscreen1234530-Sep-06 4:40
printscreen1234530-Sep-06 4:40 
AnswerRe: Formatting a single datagridview cell??? Pin
LongRange.Shooter3-Oct-06 8:22
LongRange.Shooter3-Oct-06 8:22 
I'm not sure of the extent of formatting you plan on doing...but here is what I've done:

private void RowPrePaint( object sender, DataGridViewRowPrePaintEventArgs e )
{
    if ( ( ( DataGridView )sender ).Name.StartsWith( "detail" ) )
        return;
    DataGridViewCell cell = viewer.BatchGrid.Rows[ e.RowIndex ].Cells[ "BatchSelectColumn" ];
                bool ThisRowSelected = false;
                if (cell.Value != null)
                {
                    ThisRowSelected = cell.Value == DBNull.Value ? false : (bool)cell.Value;
                }

    ElementState rowState = states[ new Guid(viewer.BatchGrid.Rows[e.RowIndex].Cells["batchGuid"].Value.ToString()) ];
    if ( rowState.InvalidDate)
        viewer.BatchGrid.Rows[ e.RowIndex ].Cells[ "dateReceived" ].Style.BackColor = Color.LightCoral;
    else
        viewer.BatchGrid.Rows[ e.RowIndex ].Cells[ "dateReceived" ].Style.BackColor =
            ThisRowSelected ? Color.LightSteelBlue : SystemColors.Info;
    if ( rowState.OutOfSequence )
        viewer.BatchGrid.Rows[ e.RowIndex ].Cells[ "batchNumber" ].Style.BackColor = Color.LightCoral;
    else
        viewer.BatchGrid.Rows[ e.RowIndex ].Cells[ "batchNumber" ].Style.BackColor =
            ThisRowSelected ? Color.LightSteelBlue : SystemColors.Info;
    if ( rowState.AmountOutOfBalance )
        viewer.BatchGrid.Rows[ e.RowIndex ].Cells[ "dollarAmount" ].Style.BackColor = Color.LightCoral;
    else
        viewer.BatchGrid.Rows[ e.RowIndex ].Cells[ "dollarAmount" ].Style.BackColor =
            ThisRowSelected ? Color.LightSteelBlue : SystemColors.Info;
    if ( rowState.CountOutOfBalance )
        viewer.BatchGrid.Rows[ e.RowIndex ].Cells[ "formCount" ].Style.BackColor = Color.LightCoral;
    else
        viewer.BatchGrid.Rows[ e.RowIndex ].Cells[ "formCount" ].Style.BackColor =
            ThisRowSelected ? Color.LightSteelBlue : SystemColors.Info;

    if ( ThisRowSelected )
        viewer.BatchGrid.Rows[ e.RowIndex ].DefaultCellStyle.BackColor = Color.LightSteelBlue;
    else
        viewer.BatchGrid.Rows[ e.RowIndex ].DefaultCellStyle.BackColor = SystemColors.Info;
}

Questionwhat we write Pin
Parshant Verma30-Sep-06 4:28
Parshant Verma30-Sep-06 4:28 
AnswerRe: what we write Pin
Guffa30-Sep-06 6:33
Guffa30-Sep-06 6:33 
AnswerRe: what we write Pin
Just me at will_george...something30-Sep-06 7:17
Just me at will_george...something30-Sep-06 7:17 
AnswerRe: what we write Pin
Judah Gabriel Himango30-Sep-06 16:53
sponsorJudah Gabriel Himango30-Sep-06 16:53 
Questionctrl+c and ctrl+v not working in TextBox Pin
rajmohan8330-Sep-06 1:38
rajmohan8330-Sep-06 1:38 
AnswerRe: ctrl+c and ctrl+v not working in TextBox Pin
zhengdong jin30-Sep-06 7:11
zhengdong jin30-Sep-06 7:11 
AnswerRe: ctrl+c and ctrl+v not working in TextBox Pin
pratap bhargava25-Jun-10 18:07
pratap bhargava25-Jun-10 18:07 
QuestionClass inheritance Pin
you3030-Sep-06 0:47
you3030-Sep-06 0:47 
AnswerRe: Class inheritance Pin
Guffa30-Sep-06 3:49
Guffa30-Sep-06 3:49 
Questionchat application Pin
rcwoods29-Sep-06 23:57
rcwoods29-Sep-06 23:57 
AnswerRe: chat application Pin
umseker30-Sep-06 4:23
umseker30-Sep-06 4:23 
Questioncreating insert statement using arrays Pin
DownBySpj29-Sep-06 23:21
DownBySpj29-Sep-06 23:21 
AnswerRe: creating insert statement using arrays Pin
Guffa29-Sep-06 23:33
Guffa29-Sep-06 23:33 
AnswerRe: creating insert statement using arrays Pin
zhengdong jin29-Sep-06 23:56
zhengdong jin29-Sep-06 23:56 
GeneralRe: creating insert statement using arrays Pin
Guffa30-Sep-06 1:04
Guffa30-Sep-06 1:04 
Questionsimple picture box question Pin
rzvme29-Sep-06 22:26
rzvme29-Sep-06 22:26 
AnswerRe: simple picture box question Pin
Stefan Troschuetz29-Sep-06 22:34
Stefan Troschuetz29-Sep-06 22:34 

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.