Click here to Skip to main content
15,929,592 members
Home / Discussions / C#
   

C#

 
GeneralRe: Redim in c# Pin
Andrew McCarter21-Apr-04 5:27
Andrew McCarter21-Apr-04 5:27 
GeneralRe: Redim in c# Pin
amatyasik21-Apr-04 5:30
amatyasik21-Apr-04 5:30 
GeneralRe: Redim in c# Pin
Jeff Varszegi21-Apr-04 5:54
professionalJeff Varszegi21-Apr-04 5:54 
GeneralEnable/Disable the keyboard and mouse Pin
lajiyo21-Apr-04 5:19
lajiyo21-Apr-04 5:19 
GeneralRe: Enable/Disable the keyboard and mouse Pin
Dave Kreskowiak21-Apr-04 8:07
mveDave Kreskowiak21-Apr-04 8:07 
GeneralRe: Enable/Disable the keyboard and mouse Pin
Heath Stewart21-Apr-04 9:47
protectorHeath Stewart21-Apr-04 9:47 
GeneralRe: Listview Problem Pin
Nick Parker21-Apr-04 4:57
protectorNick Parker21-Apr-04 4:57 
GeneralRe: Listview Problem Pin
Heath Stewart21-Apr-04 6:42
protectorHeath Stewart21-Apr-04 6:42 
GeneralRe: Listview Problem Pin
Nick Parker21-Apr-04 17:15
protectorNick Parker21-Apr-04 17:15 
GeneralRe: Listview Problem Pin
Heath Stewart22-Apr-04 2:22
protectorHeath Stewart22-Apr-04 2:22 
GeneralRe: Listview Problem Pin
Nick Parker22-Apr-04 4:00
protectorNick Parker22-Apr-04 4:00 
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 

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.