-
June 10th, 2009, 09:19 AM
#1
Good control for tabular, selectable, scrollable data?
I have a desktop C# app used in scheduling musicians at a music camp. It presents ensembles in a ListView - 1 row per ensemble, each player is a subitem.
I've been asked to make the players individually selectable, but I can't see any way to make Listview subitems selectable.
Is there a way, and if not is there a better control to do this?
Note that the data is NOT coming from a database, just a data file.
Thanks in advance.
-
June 10th, 2009, 02:34 PM
#2
Re: Good control for tabular, selectable, scrollable data?
Originally Posted by plnelson
I have a desktop C# app used in scheduling musicians at a music camp. It presents ensembles in a ListView - 1 row per ensemble, each player is a subitem.
I've been asked to make the players individually selectable, but I can't see any way to make Listview subitems selectable.
Is there a way, and if not is there a better control to do this?
Note that the data is NOT coming from a database, just a data file.
Thanks in advance.
Maybe use a Datagridview
Jonny Poet
To be Alive is depending on the willingsness to help others and also to permit others to help you. So lets be alive. !
Using Code Tags makes the difference: Code is easier to read, so its easier to help. Do it like this: [CODE] Put Your Code here [/code]
If anyone felt he has got help, show it in rating the post.
Also dont forget to set a post which is fully answered to 'resolved'. For more details look to FAQ's about Forum Usage. BTW I'm using Framework 3.5 and you ?
My latest articles :
Creating a Dockable Panel-Controlmanager Using C#, Part 1 | Part 2 | Part 3 | Part 4 | Part 5 | Part 6 | Part 7
-
June 10th, 2009, 04:54 PM
#3
Re: Good control for tabular, selectable, scrollable data?
Originally Posted by JonnyPoet
Maybe use a Datagridview
I thought DataGridViews were designed for relational database binding. How adaptable are they to having data just poked in and removed programmatically?
Today I was experimenting using a TableLayoutPanel filled with hundreds of Label controls. It seems to work pretty well (although I haven't yet worked out a way to assign a single context menu handler to all the Labels and figure out which one triggered the popup menu, but otherwise it works pretty well - it just seems like a hack.
Any other comments/suggestions?
-
June 10th, 2009, 05:13 PM
#4
Re: Good control for tabular, selectable, scrollable data?
You can use a DataGridView in an unbound mode.
-
June 10th, 2009, 09:23 PM
#5
Re: Good control for tabular, selectable, scrollable data?
Originally Posted by BigEd781
You can use a DataGridView in an unbound mode.
I didn't know you could - I'll look into that.
Today I wrote a alternative based on TableLayoutPanel and lots and lots of embedded label controls. It was easy and seems to work well but it feels like a hack.
-
June 11th, 2009, 03:25 AM
#6
Re: Good control for tabular, selectable, scrollable data?
Originally Posted by plnelson
It was easy and seems to work well but it feels like a hack.
It is a hack. You can eaily use Datagridview and doing al what you want. Databinding can be done but is no need to do it. You can add and remove data by your own code with no problems. In all cases where my grids have to do more specific issues I'm not using binding and it all works great. You can have read only cells there as well as you may have cells which are read- write in usage. Try it, its speedy and will satisfy your needs.
Jonny Poet
To be Alive is depending on the willingsness to help others and also to permit others to help you. So lets be alive. !
Using Code Tags makes the difference: Code is easier to read, so its easier to help. Do it like this: [CODE] Put Your Code here [/code]
If anyone felt he has got help, show it in rating the post.
Also dont forget to set a post which is fully answered to 'resolved'. For more details look to FAQ's about Forum Usage. BTW I'm using Framework 3.5 and you ?
My latest articles :
Creating a Dockable Panel-Controlmanager Using C#, Part 1 | Part 2 | Part 3 | Part 4 | Part 5 | Part 6 | Part 7
-
June 11th, 2009, 04:54 AM
#7
Re: Good control for tabular, selectable, scrollable data?
I would suggest GridControl by DevExpress. Ir is powerfull , but paid
- Make it run.
- Make it right.
- Make it fast.
Don't hesitate to rate my post.
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|