Click here to Skip to main content
15,888,401 members
Home / Discussions / C#
   

C#

 
GeneralRe: WinDbg and C# application Pin
George_George4-Jul-08 1:04
George_George4-Jul-08 1:04 
GeneralRe: WinDbg and C# application Pin
Simon P Stevens4-Jul-08 1:15
Simon P Stevens4-Jul-08 1:15 
GeneralRe: WinDbg and C# application Pin
George_George4-Jul-08 1:21
George_George4-Jul-08 1:21 
GeneralRe: WinDbg and C# application Pin
Simon P Stevens4-Jul-08 3:12
Simon P Stevens4-Jul-08 3:12 
GeneralRe: WinDbg and C# application Pin
George_George6-Jul-08 2:18
George_George6-Jul-08 2:18 
GeneralRe: WinDbg and C# application Pin
Simon P Stevens8-Jul-08 2:45
Simon P Stevens8-Jul-08 2:45 
GeneralRe: WinDbg and C# application Pin
George_George8-Jul-08 15:54
George_George8-Jul-08 15:54 
QuestionDataGridView, CheckBoxes and ThreeState Pin
Steven Kirk4-Jul-08 0:43
Steven Kirk4-Jul-08 0:43 
Hello,

I have a DataGridView with a DataGridViewCheckBoxColumn. I want to be
able to have the checkbox display in an indeterminate state, so I've
set the ThreeState property to True. However, I want the indeterminate
state to only be set programatically - whenever the user clicks the
checkbox, it should only toggle between Checked and Unchecked.

Now, this is the default behaviour of a standard CheckBox control - as
detailed in the CheckBox.ThreeState property documentation:

"the CheckState property value can only be set to the Indeterminate
value of System.Windows.Forms.CheckState in code and not by user
interaction"

How would I achieve this with DataGridView? I'm committing the changes
to the checkbox cells immediately by catching the
CurrentCellDirtyStateChanged event and calling CommitEdit as suggested
in the documentation for DataGridView. However, if I try catching the
indeterminate state in this event or in CellValueChanged, and setting
Value to CheckState.Unchecked, the cell's Value property changes but
the display does not update until the control loses focus or another
row is selected.

As this is the default for the CheckBox control, I'm sure it can't be
that difficult to get the DataGridView to do it. What am I missing?

Thanks in advance for your help,
Steven
QuestionUnique Problem, Connecting to web service using credentials fail for 1 user only, works for all. Pin
Rizwan Bashir4-Jul-08 0:21
Rizwan Bashir4-Jul-08 0:21 
AnswerRe: Unique Problem, Connecting to web service using credentials fail for 1 user only, works for all. Pin
leppie4-Jul-08 0:31
leppie4-Jul-08 0:31 
GeneralRe: Unique Problem, Connecting to web service using credentials fail for 1 user only, works for all. Pin
Rizwan Bashir4-Jul-08 1:07
Rizwan Bashir4-Jul-08 1:07 
GeneralRe: Unique Problem, Connecting to web service using credentials fail for 1 user only, works for all. Pin
leppie4-Jul-08 2:07
leppie4-Jul-08 2:07 
GeneralRe: Unique Problem, Connecting to web service using credentials fail for 1 user only, works for all. Pin
Rizwan Bashir4-Jul-08 2:17
Rizwan Bashir4-Jul-08 2:17 
GeneralRe: Unique Problem, Connecting to web service using credentials fail for 1 user only, works for all. Pin
Rizwan Bashir4-Jul-08 4:24
Rizwan Bashir4-Jul-08 4:24 
GeneralRe: Unique Problem, Connecting to web service using credentials fail for 1 user only, works for all. Pin
leppie4-Jul-08 4:35
leppie4-Jul-08 4:35 
QuestionBest practice static class or static variables. Pin
ESTAN4-Jul-08 0:18
ESTAN4-Jul-08 0:18 
AnswerRe: Best practice static class or static variables. Pin
Christian Graus4-Jul-08 0:38
protectorChristian Graus4-Jul-08 0:38 
QuestionProblem with simple arithmetic using textbox and label! Pin
Yosh_4-Jul-08 0:07
professionalYosh_4-Jul-08 0:07 
AnswerRe: Problem with simple arithmetic using textbox and label! Pin
paas4-Jul-08 0:18
paas4-Jul-08 0:18 
QuestionFormatting of existing code......... Pin
KBM733-Jul-08 23:46
KBM733-Jul-08 23:46 
AnswerRe: Formatting of existing code......... Pin
leppie4-Jul-08 0:29
leppie4-Jul-08 0:29 
QuestionCreating application for multiple database connection Pin
xybroxymoron3-Jul-08 23:45
xybroxymoron3-Jul-08 23:45 
AnswerRe: Creating application for multiple database connection Pin
leppie4-Jul-08 0:30
leppie4-Jul-08 0:30 
JokeRe: Creating application for multiple database connection Pin
Harvey Saayman4-Jul-08 0:37
Harvey Saayman4-Jul-08 0:37 
QuestionInstall Pin
ellllllllie3-Jul-08 23:24
ellllllllie3-Jul-08 23:24 

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.