Click here to Skip to main content
16,008,075 members
Home / Discussions / C#
   

C#

 
GeneralAdd Permission to a Registrykey with C# Pin
Sebastian Wittig21-Apr-04 4:21
Sebastian Wittig21-Apr-04 4:21 
GeneralRe: Add Permission to a Registrykey with C# Pin
Heath Stewart21-Apr-04 7:14
protectorHeath Stewart21-Apr-04 7:14 
GeneralRe: Add Permission to a Registrykey with C# Pin
Sebastian Wittig21-Apr-04 21:08
Sebastian Wittig21-Apr-04 21:08 
GeneralDataGridBoolColumn Pin
bertcox21-Apr-04 4:20
bertcox21-Apr-04 4:20 
GeneralRe: DataGridBoolColumn Pin
Heath Stewart21-Apr-04 7:16
protectorHeath Stewart21-Apr-04 7:16 
GeneralRe: DataGridBoolColumn Pin
bertcox21-Apr-04 21:53
bertcox21-Apr-04 21:53 
GeneralRe: DataGridBoolColumn Pin
Heath Stewart22-Apr-04 2:29
protectorHeath Stewart22-Apr-04 2:29 
GeneralRe: DataGridBoolColumn Pin
bertcox22-Apr-04 2:58
bertcox22-Apr-04 2:58 
thx for helping me and is was indeed a bad example Wink | ;-)

ds.ReadXml(@"c:\testnodes.xml");<br />
dataGrid1.DataSource = ds;<br />
dataGrid1.DataMember = "library";<br />
<br />
DataGridTableStyle ts1 = new DataGridTableStyle();<br />
ts1.MappingName = "library";<br />
DataGridColumnStyle Col = new DataGridTextBoxColumn();<br />
Col.MappingName = "fullname";<br />
Col.HeaderText = "IsCurrent Customer";<br />
Col.Width = 150;<br />
ts1.GridColumnStyles.Add(Col);<br />
<br />
DataGridColumnStyle boolCol = new DataGridBoolColumn();<br />
boolCol.MappingName = "super";<br />
boolCol.HeaderText = "IsCurrent Customer";<br />
boolCol.Width = 150;<br />
ts1.GridColumnStyles.Add(boolCol);<br />
<br />
DataGridColumnStyle TextCol = new DataGridTextBoxColumn();<br />
TextCol.MappingName = "loadorder";<br />
TextCol.HeaderText = "Customer Name";<br />
TextCol.Width = 250;<br />
ts1.GridColumnStyles.Add(TextCol);<br />
<br />
dataGrid1.TableStyles.Add(ts1);



i followed your advice and tried it on my application and it worked. But i'm still forgetting something. I can see checkboxes in my datagrid now but they are all checked (in grey) although in my xml-file some are false. I can click them but they change back immediately when i leave a cell which is not good because when it's changed it has to change in the xml-file too.

hope you understand what i mean and thx again
GeneralRe: DataGridBoolColumn Pin
Heath Stewart22-Apr-04 3:59
protectorHeath Stewart22-Apr-04 3:59 
GeneralRe: DataGridBoolColumn Pin
bertcox22-Apr-04 4:09
bertcox22-Apr-04 4:09 
GeneralRe: DataGridBoolColumn Pin
Heath Stewart22-Apr-04 4:18
protectorHeath Stewart22-Apr-04 4:18 
GeneralRe: DataGridBoolColumn Pin
bertcox22-Apr-04 4:30
bertcox22-Apr-04 4:30 
GeneralRe: DataGridBoolColumn Pin
Heath Stewart22-Apr-04 4:33
protectorHeath Stewart22-Apr-04 4:33 
GeneralRe: DataGridBoolColumn Pin
bertcox22-Apr-04 4:45
bertcox22-Apr-04 4:45 
GeneralRe: DataGridBoolColumn Pin
Heath Stewart22-Apr-04 4:55
protectorHeath Stewart22-Apr-04 4:55 
GeneralRe: DataGridBoolColumn Pin
bertcox22-Apr-04 5:04
bertcox22-Apr-04 5:04 
GeneralRe: DataGridBoolColumn Pin
Heath Stewart22-Apr-04 5:05
protectorHeath Stewart22-Apr-04 5:05 
GeneralRe: DataGridBoolColumn Pin
bertcox22-Apr-04 5:20
bertcox22-Apr-04 5:20 
GeneralRe: DataGridBoolColumn Pin
Heath Stewart22-Apr-04 5:21
protectorHeath Stewart22-Apr-04 5:21 
Generalsubtraction in matrix Pin
kcal21-Apr-04 4:11
kcal21-Apr-04 4:11 
GeneralInvalidate rectangle... Pin
TweeZz21-Apr-04 4:01
TweeZz21-Apr-04 4:01 
GeneralRe: Invalidate rectangle... Pin
Shail_Srivastav21-Apr-04 5:29
Shail_Srivastav21-Apr-04 5:29 
GeneralC# Web Service - Invoked from a VC++ 6.0 Client (MS-SOAP) Pin
Nirav Doshi21-Apr-04 2:07
Nirav Doshi21-Apr-04 2:07 
GeneralRe: C# Web Service - Invoked from a VC++ 6.0 Client (MS-SOAP) Pin
Mazdak21-Apr-04 2:24
Mazdak21-Apr-04 2:24 
GeneralRe: C# Web Service - Invoked from a VC++ 6.0 Client (MS-SOAP) Pin
Nirav Doshi21-Apr-04 3:04
Nirav Doshi21-Apr-04 3:04 

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.