Skip to main content
Home Forums Silverlight Programming Programming with JavaScript Dynamic binding of gid.
2 replies. Latest Post by SilAbdul on June 16, 2009.
(0)
SilAbdul
Member
0 points
2 Posts
06-15-2009 10:46 AM |
I Need to bind a grid... Am not aware of rows and columns.
The rows and columns will be taken from DB.
Am able to bind row datas, but am not able to bind column datas.
Eg. this is possible to bind.
1
2
3
4
If suppose i have more that one column in a row, i can bind only first row corretly, Unable to bind rest of the rows, as shown below.
1 1 3
Multiple row with one column is possible, but multiple rows with n number of columns is not possible.
Kindly help me out...
mchlsync
Star
14606 points
2,730 Posts
06-15-2009 11:22 AM |
In WPF, we can use DataTable to deal witth this kind of requirement ( dynamic columns ).
For Silverlight, you will probably need to create DataTable-alike class by your own.
OR
You can use the nested datagrid to solve that problem. You can simply put the datagrid that has no header but specific width for columns inside the row of datagrid.
06-16-2009 12:55 AM |
Can u send me some sample code to work on that....