Datagrid strange behaviour


dears,

i'm facing problems datagrid.

i can't see values on datagrid. can see columns.

am missing ???

hereunder code :

class testclass
{
public string param1 { get; set; }
public string param2 { get; set; }
}
public mainpage()
{
initializecomponent();
observablecollection<testclass> collection = new observablecollection<testclass>()
{
new testclass(){ param1 = "a",param2="b"},
new testclass(){ param1 = "a",param2="b"} ,
new testclass(){ param1 = "a",param2="b"}
};
dg.itemssource = collection;
}

and here xaml

<grid x:name="layoutroot" background="white">
<sdk:datagrid x:name="dg" width="300" autogeneratecolumns="true" height="300" >
</sdk:datagrid>
</grid>

thanks in advance.


senior software architect

solved !!!! :)

just add following assemblyinfo :)

[assembly: system.runtime.compilerservices.internalsvisibleto("system.windows")]


senior software architect


Archived Forums SA-SM  >  Silverlight (formerly WPF/E) Developer Issues



Comments

Popular posts from this blog

Motherboard replacement

Cannot create Full Text Search catalog after upgrading to V12 - Database is not fully started up or it is not in an ONLINE state

Remote Desktop App - Error 0x207 or 0x607