Skip to main content

Microsoft Silverlight

Answered Question Dynamic binding of gid.RSS Feed

(0)

SilAbdul
SilAbdul

Member

Member

0 points

2 Posts

Dynamic binding of gid.

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

2

3

4

Multiple row with one column is possible, but multiple rows with n number of columns is not possible.

Kindly help me out...

mchlsync
mchlsync

Star

Star

14606 points

2,730 Posts

Silverlight MVP
Answered Question

Re: Dynamic binding of gid.

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. 

(If this has answered your question, please click on "Mark as Answer" on this post. Thank you!)

Regards,
Michael Sync
Silverlight MVP

Blog : http://michaelsync.net


SilAbdul
SilAbdul

Member

Member

0 points

2 Posts

Re: Dynamic binding of gid.

Can u send me some sample code to work on that....

 

 

  • Unanswered Question
  • Answered Question
  • Announcement
Microsoft Communities