Skip to main content
Microsoft Silverlight
Home Forums Silverlight Programming Programming with .NET - General store Two Diamantion array in Datagrid Silverlight
2 replies. Latest Post by timiil on June 17, 2009.
(0)
bhalaniabhi
Member
47 points
25 Posts
02-12-2009 6:15 PM |
I have to store Two Diamantion in Datagrid ??
how it possible as a ItemSource in DataGrid in Silverlight page.xaml.cs File
example: strArray[ 5,6 ] Stored in Datagrid as ItemSource.
Allen Ch...
Star
13875 points
1,804 Posts
02-16-2009 5:49 AM |
Hi,
Due to current limitation of DataGrid it's not easy to do so. You can try following code:
xaml.cs:
using
{
InitializeComponent();
}
array[i, j] = r.Next(1, 100);
getIlgen.Emit(
exProperty.SetGetMethod(exGetMethod);
setIlgen.Emit(
exProperty.SetSetMethod(exSetMethod);
counter++;
finished = myType.CreateType();
Emit(array);
AddPrivate(array);
_count++;
_count = 0;
xaml:
<
timiil
7 points
11 Posts
06-17-2009 10:05 AM |
Hello Mr Chen, do we have any way that use the Emit to create an SilverLight compatible assembly like your above code, BUT use common .NET platform, for saying, in normal Winform or NTService or anything else? i had decomplie the common .NET class and the Silverlight class using ILDasm, i can't see any diffrent assmebly attribute had been use...