PDA

View Full Version : Best way: Listview and column radio buttons...


PiXeL_MoNKeY
10-16-2008, 10:14 PM
I was wondering the best way to create a dynamic listview where the radio button can only be set for one item in a column. The plan is to create a list view where you can add items to the list, and select features using the radio buttons, but a user should only be able to have one item per column selected.

I am guessing this would be best handled with dotnet, but I have never made a listview or worked with dotnet. So any info on the best place to look for info would be greatly appreciated.

Thanks,
-Eric

PEN
10-17-2008, 01:37 PM
First off have a look at the dotNet tuts on my site and that will get you started with the listView control. It would be completely possible to do what you are saying based on clicking in a given column but I'm thinking that it would be better handled in a grid control. I have not used one as of yet but you have better access to the cels as far as I know. Can any one else make a suggestion here?

JHN
10-17-2008, 01:46 PM
Hi Paul, coincidently I was using your listview tutorial today and it was very usefull(!!) (haven't touched dotnet in a while :\ ) only thing I would suggest is add a "theLv.Sorting=theLv.Sorting.Ascending" to the initLv function. That makes it more complete because by default it descents getting the object names reversed.

Thanks!
-Johan

CGTalk Moderation
10-17-2008, 01:46 PM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.