Click here to Skip to main content
15,880,364 members
Home / Discussions / Windows Forms
   

Windows Forms

 
QuestionThe name does not exist in the current context Pin
Member 1148634727-Feb-15 15:53
Member 1148634727-Feb-15 15:53 
AnswerRe: The name does not exist in the current context Pin
Richard MacCutchan27-Feb-15 22:26
mveRichard MacCutchan27-Feb-15 22:26 
AnswerRe: The name does not exist in the current context Pin
Afzaal Ahmad Zeeshan1-Apr-15 1:20
professionalAfzaal Ahmad Zeeshan1-Apr-15 1:20 
QuestionJoystick Windows Forms User Control Pin
Abinonos15-Feb-15 9:37
Abinonos15-Feb-15 9:37 
AnswerRe: Joystick Windows Forms User Control Pin
Gerry Schmitz1-Apr-15 0:39
mveGerry Schmitz1-Apr-15 0:39 
QuestionGridView checkbox cell Pin
Wild Thing11-Feb-15 23:00
Wild Thing11-Feb-15 23:00 
QuestionRe: GridView checkbox cell Pin
Richard MacCutchan12-Feb-15 1:05
mveRichard MacCutchan12-Feb-15 1:05 
AnswerRe: GridView checkbox cell Pin
Wild Thing12-Feb-15 2:57
Wild Thing12-Feb-15 2:57 
ok, here is my intitialization:
C#
   foreach (Linie lrow in ud.Linien)
   {
       LLinGrid.Rows.Add();

       DataGridViewRow gr = LLinGrid.Rows[LLinGrid.NewRowIndex - 1];

       gr.Cells["global"].Value = Convert.ToString(lrow.Global);
       gr.Cells["ust"].Value = Convert.ToString(lrow.Ust);
       gr.Cells["kennung"].Value = Convert.ToString(lrow.Kennung);

       if ((lrow.Kennung & 0x80) != 0)
           gr.Cells["isuz"].Value = true;    // set and shown correctly !
       if ((lrow.Kennung & 0x40) != 0)
           gr.Cells["aktiv"].Value = true;   // set and shown correctly !

       gr.Cells["dir"].Value   = Convert.ToString(lrow.Dir);

       gr.Cells["xmit"].Value = true; // Debugger says : true, but shown as unchecked
}


if I move the "xmit" column from position 1 to >2, it works. I tried:
C#
LLinGrid.ClearSelection();
LLinGrid.Rows[0].Cells[1].Selected = true;  // select next cell
LLinGrid.Invalidate();
LLinGrid.InvalidateCell(LLinGrid.Rows[0].Cells[0]);
LLinGrid.Show();
LLinGrid.UpdateCellValue(0, 0);

All of those didn't show the desired result. The value for the checkbox in the first column stays unchecked until I move to the next cell.

this happens only in the first row; follwing rows are correct.
GeneralRe: GridView checkbox cell Pin
Wild Thing12-Feb-15 22:31
Wild Thing12-Feb-15 22:31 
QuestionAny tips on how to create a UI like blizzard/origin/steam game clients using WinForms? Pin
vizimuchi11-Feb-15 8:29
vizimuchi11-Feb-15 8:29 
AnswerRe: Any tips on how to create a UI like blizzard/origin/steam game clients using WinForms? Pin
Richard MacCutchan11-Feb-15 21:49
mveRichard MacCutchan11-Feb-15 21:49 
AnswerRe: Any tips on how to create a UI like blizzard/origin/steam game clients using WinForms? Pin
den2k8812-Feb-15 2:01
professionalden2k8812-Feb-15 2:01 
Questionunsure of controls to use Pin
minnie mouse5-Jan-15 11:14
minnie mouse5-Jan-15 11:14 
AnswerRe: unsure of controls to use Pin
Richard MacCutchan5-Jan-15 22:54
mveRichard MacCutchan5-Jan-15 22:54 
QuestionInternship Management System Pin
Member 112919486-Dec-14 22:37
Member 112919486-Dec-14 22:37 
Questiondatagridviewtextboxcell error on 350 characters Pin
Rhyde Marsh12-Nov-14 11:06
Rhyde Marsh12-Nov-14 11:06 
QuestionRe: datagridviewtextboxcell error on 350 characters Pin
Richard MacCutchan12-Nov-14 21:26
mveRichard MacCutchan12-Nov-14 21:26 
AnswerRe: datagridviewtextboxcell error on 350 characters Pin
Rhyde Marsh13-Nov-14 3:39
Rhyde Marsh13-Nov-14 3:39 
GeneralRe: datagridviewtextboxcell error on 350 characters Pin
Richard MacCutchan13-Nov-14 4:26
mveRichard MacCutchan13-Nov-14 4:26 
GeneralRe: datagridviewtextboxcell error on 350 characters Pin
Rhyde Marsh13-Nov-14 5:25
Rhyde Marsh13-Nov-14 5:25 
GeneralRe: datagridviewtextboxcell error on 350 characters Pin
Richard MacCutchan13-Nov-14 5:38
mveRichard MacCutchan13-Nov-14 5:38 
GeneralRe: datagridviewtextboxcell error on 350 characters Pin
Rhyde Marsh14-Nov-14 1:27
Rhyde Marsh14-Nov-14 1:27 
QuestionRe: datagridviewtextboxcell error on 350 characters Pin
Eddy Vluggen13-Nov-14 5:38
professionalEddy Vluggen13-Nov-14 5:38 
AnswerRe: datagridviewtextboxcell error on 350 characters Pin
Rhyde Marsh18-Nov-14 5:36
Rhyde Marsh18-Nov-14 5:36 
GeneralRe: datagridviewtextboxcell error on 350 characters Pin
Eddy Vluggen18-Nov-14 5:50
professionalEddy Vluggen18-Nov-14 5:50 

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.