PLEASE tell me you're joking!?!? ;)
Steven Kirk
Posts
-
Am I missing Something? -
WPF and ASP.NETYou could perhaps try giving Cassini a WPF front-end? (http://www.asp.net/Downloads/archived/cassini/[^], http://ultidev.com/products/Cassini/[^]) I've needed something like this before and ended up pretty much writing my own simple webserver using HttpListener. However I didn't need any actual ASP.net features, my webserver was very simple. But I think Cassini would have been a better route to have taken.
-
How do Markup Extensions raise compile errors?Certain markup extensions raise compile errors. For example StaticExtension (x:Static) raises a compile error if the referenced class cannot be found. Anyone know the mechanism for this? Is it baked into the XAML compiler or is such functionaility available to custom markup extensions?
-
DataGridView, CheckBoxes and ThreeStateHello, 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