Click here to Skip to main content
15,900,110 members
Home / Discussions / C#
   

C#

 
GeneralDisabling splash screen Pin
SatyaDY17-Mar-04 22:36
SatyaDY17-Mar-04 22:36 
GeneralRe: Disabling splash screen Pin
Mazdak17-Mar-04 23:03
Mazdak17-Mar-04 23:03 
GeneralRe: Disabling splash screen Pin
Heath Stewart18-Mar-04 4:33
protectorHeath Stewart18-Mar-04 4:33 
GeneralRe: Disabling splash screen Pin
Jeremy Kimball18-Mar-04 7:36
Jeremy Kimball18-Mar-04 7:36 
Generalchecking the running processes Pin
SatyaDY17-Mar-04 22:34
SatyaDY17-Mar-04 22:34 
GeneralRe: checking the running processes Pin
Mazdak17-Mar-04 22:43
Mazdak17-Mar-04 22:43 
GeneralGrey checkboxes Pin
Krisst K17-Mar-04 21:40
Krisst K17-Mar-04 21:40 
GeneralRe: Grey checkboxes Pin
Heath Stewart18-Mar-04 4:28
protectorHeath Stewart18-Mar-04 4:28 
You can either derive your own DataGridColumnStyle and use an actual ComboBox with tri-state disabled (default), or make sure that the column bound to the DataGridBoolColumn never has nulls (like, don't allow nulls in the database or in your DataSet, which you can configure when dynamically creating a DataSet or - better yet - to create a typed DataSet in VS.NET which is easy - just add a new "DataSet" class to your project and design it or drag-n-drop tables from the Server Explorer if you have a connection to your DB established). When you create that field in your table for a typed DataSet, there is an option to disallow nulls.

The default DataGridBoolColumn draws a tri-state combobox (doesn't use the actual ComboBox control) if nulls are present (or allowed), but draws a simple combobox if there isn't.

You can further control this by explicitly defining table and colum styles for the DataGrid. See the DataGrid.TableStyles documentation for details and an example. VS.NET's DataGrid designer makes this a trivial task, especially when you've added an instance of a typed DataSet to your designer component surface.

 

Microsoft MVP, Visual C#
My Articles
GeneralUserControl and Listbox's datasource at design time Pin
Mr. Labenche17-Mar-04 21:10
Mr. Labenche17-Mar-04 21:10 
GeneralRe: UserControl and Listbox's datasource at design time Pin
Heath Stewart18-Mar-04 4:22
protectorHeath Stewart18-Mar-04 4:22 
GeneralRe: UserControl and Listbox's datasource at design time Pin
John Fisher18-Mar-04 4:22
John Fisher18-Mar-04 4:22 
Generalgetting data from database and separating them Pin
ASGill17-Mar-04 20:21
ASGill17-Mar-04 20:21 
GeneralRe: getting data from database and separating them Pin
Mazdak17-Mar-04 22:52
Mazdak17-Mar-04 22:52 
GeneralRe: getting data from database and separating them Pin
Heath Stewart18-Mar-04 4:17
protectorHeath Stewart18-Mar-04 4:17 
GeneralWindow UI modification in C# Pin
authenticgeek17-Mar-04 16:51
authenticgeek17-Mar-04 16:51 
GeneralRe: Window UI modification in C# Pin
Dave Kreskowiak17-Mar-04 16:54
mveDave Kreskowiak17-Mar-04 16:54 
GeneralRe: Window UI modification in C# Pin
authenticgeek17-Mar-04 17:07
authenticgeek17-Mar-04 17:07 
GeneralRe: Window UI modification in C# Pin
Dave Kreskowiak18-Mar-04 1:44
mveDave Kreskowiak18-Mar-04 1:44 
GeneralRe: Window UI modification in C# Pin
authenticgeek18-Mar-04 20:48
authenticgeek18-Mar-04 20:48 
GeneralRe: Window UI modification in C# Pin
Dave Kreskowiak19-Mar-04 11:10
mveDave Kreskowiak19-Mar-04 11:10 
GeneralRe: Window UI modification in C# Pin
Heath Stewart18-Mar-04 3:50
protectorHeath Stewart18-Mar-04 3:50 
GeneralRe: Window UI modification in C# Pin
K4reem19-Mar-04 0:37
K4reem19-Mar-04 0:37 
GeneralHTTPResponse Threading Pin
K4reem17-Mar-04 14:45
K4reem17-Mar-04 14:45 
GeneralRe: HTTPResponse Threading Pin
Dave Kreskowiak17-Mar-04 16:53
mveDave Kreskowiak17-Mar-04 16:53 
GeneralRe: HTTPResponse Threading Pin
K4reem19-Mar-04 0:31
K4reem19-Mar-04 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.