Click here to Skip to main content
15,917,176 members
Home / Discussions / C#
   

C#

 
GeneralXML node reading Pin
gmeii2-Mar-05 20:24
gmeii2-Mar-05 20:24 
GeneralRe: XML node reading Pin
Heath Stewart2-Mar-05 21:47
protectorHeath Stewart2-Mar-05 21:47 
GeneralHighlight Text Pin
gmeii2-Mar-05 20:16
gmeii2-Mar-05 20:16 
GeneralRe: Highlight Text Pin
Heath Stewart2-Mar-05 21:31
protectorHeath Stewart2-Mar-05 21:31 
GeneralDisplay Chinese character in the Microsoft Flex Grid. Pin
Member 12723812-Mar-05 18:47
Member 12723812-Mar-05 18:47 
QuestionFile reference or Project reference ?? Pin
Md Saleem Navalur2-Mar-05 18:34
Md Saleem Navalur2-Mar-05 18:34 
AnswerRe: File reference or Project reference ?? Pin
Heath Stewart2-Mar-05 21:13
protectorHeath Stewart2-Mar-05 21:13 
QuestionHow to make a datagrid with a column of CheckBox????? Pin
welsrping2-Mar-05 15:37
welsrping2-Mar-05 15:37 
Hello everyone,
I want to make a datagrid which has a column of Checkbox. By using DataGridBoolColumn class, I have done this. But, When my Application starts, the CheckBox Column will be in the checkstate of "Indeterminate". I want it to be "Uncheked". The CheckBox Control has an Attribute of CheckState, but DataGridBoolColumn hasn't this Attribute. How can i do this? Please help me.
A segment of my code:

DataGridTableStyle dgt = new DataGridTableStyle();
dgt.MappingName = "ok";

DataGridTextBoxColumn dgtbc = new DataGridTextBoxColumn();
dgtbc.MappingName = "Name";
dgtbc.HeaderText= "Name";
dgt.GridColumnStyles.Add(dgtbc);

dgtbc = new DataGridTextBoxColumn();
dgtbc.MappingName = "ID";
dgtbc.HeaderText= "ID";
dgt.GridColumnStyles.Add(dgtbc);

DataGridBoolColumn dgbc = new DataGridBoolColumn();
dgbc.MappingName = "Check";
dgbc.HeaderText = "Check";
dgbc.AllowNull = false;
dgbc.FalseValue = false;
dgbc.TrueValue = true;
dgt.GridColumnStyles.Add(dgbc);

this.dataGrid1.TableStyles.Clear();
this.dataGrid1.TableStyles.Add(dgt);

hope for help
AnswerRe: How to make a datagrid with a column of CheckBox????? Pin
Titan Williams2-Mar-05 17:50
Titan Williams2-Mar-05 17:50 
GeneralRe: How to make a datagrid with a column of CheckBox????? Pin
welsrping3-Mar-05 13:09
welsrping3-Mar-05 13:09 
AnswerRe: How to make a datagrid with a column of CheckBox????? Pin
Titan Williams2-Mar-05 17:51
Titan Williams2-Mar-05 17:51 
AnswerRe: How to make a datagrid with a column of CheckBox????? Pin
Heath Stewart2-Mar-05 21:11
protectorHeath Stewart2-Mar-05 21:11 
GeneralRe: How to make a datagrid with a column of CheckBox????? Pin
welsrping3-Mar-05 13:27
welsrping3-Mar-05 13:27 
GeneralRe: How to make a datagrid with a column of CheckBox????? Pin
Heath Stewart4-Mar-05 6:00
protectorHeath Stewart4-Mar-05 6:00 
GeneralRe: How to make a datagrid with a column of CheckBox????? Pin
welsrping6-Mar-05 12:42
welsrping6-Mar-05 12:42 
AnswerRe: Simple: Make the Table column's Default value to what ever you want. Pin
dlscl4227-Jul-05 23:37
dlscl4227-Jul-05 23:37 
GeneralUnbinding DataSources Pin
Peter Vertes2-Mar-05 14:42
Peter Vertes2-Mar-05 14:42 
GeneralRe: Unbinding DataSources Pin
sreejith ss nair2-Mar-05 18:15
sreejith ss nair2-Mar-05 18:15 
Generalc# multithreading Pin
scottsebelius2-Mar-05 14:04
scottsebelius2-Mar-05 14:04 
GeneralRe: c# multithreading Pin
S. Senthil Kumar2-Mar-05 14:56
S. Senthil Kumar2-Mar-05 14:56 
GeneralRe: c# multithreading Pin
Dave Kreskowiak3-Mar-05 0:58
mveDave Kreskowiak3-Mar-05 0:58 
QuestionHow to build a dual-action scroll bar ? Pin
paisanousa2-Mar-05 13:31
paisanousa2-Mar-05 13:31 
AnswerRe: How to build a dual-action scroll bar ? Pin
Gamya2-Mar-05 20:01
sussGamya2-Mar-05 20:01 
GeneralRe: How to build a dual-action scroll bar ? Pin
paisanousa3-Mar-05 10:25
paisanousa3-Mar-05 10:25 
GeneralRe: How to build a dual-action scroll bar ? Pin
3-Mar-05 18:39
suss3-Mar-05 18:39 

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.