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
Post a Comment