Click here to Skip to main content
15,899,475 members
Home / Discussions / C#
   

C#

 
QuestionRe:How to find out unused registry keys Pin
RameshwerE4-Jul-08 3:54
RameshwerE4-Jul-08 3:54 
AnswerRe:How to find out unused registry keys Pin
Simon P Stevens4-Jul-08 3:58
Simon P Stevens4-Jul-08 3:58 
AnswerRe:How to find out unused registry keys Pin
Christian Graus4-Jul-08 9:21
protectorChristian Graus4-Jul-08 9:21 
Questionhow to restart application after updating version Pin
asma_panjabi4-Jul-08 1:39
asma_panjabi4-Jul-08 1:39 
AnswerRe: how to restart application after updating version Pin
N a v a n e e t h4-Jul-08 2:10
N a v a n e e t h4-Jul-08 2:10 
GeneralRe: how to restart application after updating version Pin
asma_panjabi4-Jul-08 2:13
asma_panjabi4-Jul-08 2:13 
GeneralRe: how to restart application after updating version Pin
leppie4-Jul-08 4:33
leppie4-Jul-08 4:33 
GeneralRe: how to restart application after updating version Pin
N a v a n e e t h4-Jul-08 17:49
N a v a n e e t h4-Jul-08 17:49 
GeneralRe: how to restart application after updating version Pin
leppie4-Jul-08 18:19
leppie4-Jul-08 18:19 
GeneralRe: how to restart application after updating version Pin
N a v a n e e t h4-Jul-08 18:32
N a v a n e e t h4-Jul-08 18:32 
GeneralRe: how to restart application after updating version Pin
asma_panjabi6-Jul-08 19:55
asma_panjabi6-Jul-08 19:55 
QuestionProblem With Structure Access Pin
cristi_alonso4-Jul-08 1:24
cristi_alonso4-Jul-08 1:24 
AnswerRe: Problem With Structure Access Pin
leppie4-Jul-08 2:05
leppie4-Jul-08 2:05 
QuestionWinDbg and C# application Pin
George_George4-Jul-08 0:46
George_George4-Jul-08 0:46 
AnswerRe: WinDbg and C# application Pin
Christian Graus4-Jul-08 1:02
protectorChristian Graus4-Jul-08 1:02 
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 

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.