views:

45

answers:

1

How to create a user control for this kind of layout. I have a css. But dont know how to create a control for this kind of display.

Title is the department name and below mentioned radio buttons are status for each department. Now department can be multiple as present in database. This one box can contain only two department list and new box needs to be created as soon as 2 departments are filled into this.

How can I create user control for this type to bind it from datatable.

I am reading about DynamicDataField but seems to be of no use.

alt text

Here fields encircled is department and its statuses

A: 

Hi Shantanu, is your problem solved? I did something like yours before, think you could try to do that using listview control.

Gan
@Gan: No my problem is still as it is. Although due to time boundation I did it in a bad way, by adding divs and other css along with adding radio buttons :(
Shantanu Gupta
I think ListView could solve your problem. By using listview, each circled item in your question is a ListViewItem. The items are in a group of two. Set the Listview's GroupItemCount property to 2, and specify the GroupTemplate to look like the big grey circle enclosing the two Department in your screenshot. Inside each of your ListViewItem / ItemTemplate, you can have a radiobuttongroup bound to a datasource conrtrol. Note that Listview is only available after .NET 3.5. Let me know if you need more info. :)
Gan
@Gan: After 3.5 means ? 4.0. Will try today
Shantanu Gupta
Yes, it is available in .NET 3.5, and in .NET 4.0 as well. Good luck to you, and hope to hear your progress soon. :)
Gan
btw, here's a link to the ListView web server control overview: http://msdn.microsoft.com/en-us/library/bb398790.aspx, just in case you need it :)
Gan
Hi Shantanu, is the listview control any help to your problem? :)
Gan