Click here to Skip to main content
15,924,195 members
Home / Discussions / C#
   

C#

 
GeneralRe: Listview Problem Pin
Reinier van de Wetering21-Apr-04 22:24
Reinier van de Wetering21-Apr-04 22:24 
GeneralRe: Listview Problem Pin
Heath Stewart22-Apr-04 2:35
protectorHeath Stewart22-Apr-04 2:35 
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 
I'll try to explain it.

ds.ReadXml(@"c:\testnodes.xml");
dataGrid1.DataSource = ds;
dataGrid1.DataMember = "library";

GridColumnStylesCollection myGridColumnCol;
myGridColumnCol = dataGrid1.TableStyles[0].GridColumnStyles;
// Get the CurrencyManager for the table.
CurrencyManager myCurrencyManager =
(CurrencyManager)this.BindingContext[ds.Tables["library"]];
/* Get the PropertyDescriptor for the DataColumn of the new column.
The column should contain a Boolean value. */
PropertyDescriptor pd = myCurrencyManager.
GetItemProperties()["super"];
DataGridColumnStyle myColumn = new DataGridBoolColumn(pd);
myColumn.MappingName = "super";
myGridColumnCol.Add(myColumn);


this is code i found on the internet, in the datagrid i can see the data but just text, no column has checkboxes.

the xml-file looks like this:

<sessie name="bedrijf">
<libraries>
<library name="comlib">
<fullname>comlib.p</fullname>
<super>true</super>
<loadorder>4</loadorder>
</library>
<library name="templateinqlib">
<fullname>templateinqlib.p</fullname>
<super>true</super>
<loadorder>5</loadorder>
</library>
<library name="Librarytest">
<fullname>Test</fullname>
<super>false</super>
<loadorder>5</loadorder>
</library>
</sessie>

thx in advance
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 
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 

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.