Multi-Column What
-
I have a dataset that contains multiple columns of text that needs to be displayed in a control on a Windows form - much like a spreadsheet. The rows need to be selectable so I can retrieve data later on in the application (by being able to retrieve an index or column ID). I'd like the entire row to be selectable rather than just a specific column. I have looked at using a datagrid, but that seems to be overkill. I also looked at some multi-column listbox controls on Code Project but they go much farther than I need my control. Perhaps there is another control or custom control I should use?:confused:
-
I have a dataset that contains multiple columns of text that needs to be displayed in a control on a Windows form - much like a spreadsheet. The rows need to be selectable so I can retrieve data later on in the application (by being able to retrieve an index or column ID). I'd like the entire row to be selectable rather than just a specific column. I have looked at using a datagrid, but that seems to be overkill. I also looked at some multi-column listbox controls on Code Project but they go much farther than I need my control. Perhaps there is another control or custom control I should use?:confused:
Peter8675309 wrote: Perhaps there is another control or custom control I should use? The
DataGrid
and other controls are overkill? You could always write your own, defining only what you need. I would assume any other control out there is probably going to also be too much for your needs as they typically try to supply what theDataGrid
doesn't out of the box. - Nick Parker
My Blog | My Articles -
Peter8675309 wrote: Perhaps there is another control or custom control I should use? The
DataGrid
and other controls are overkill? You could always write your own, defining only what you need. I would assume any other control out there is probably going to also be too much for your needs as they typically try to supply what theDataGrid
doesn't out of the box. - Nick Parker
My Blog | My ArticlesNick; Turns out the datagrid WILL work fine. not sure what I was thinking (maybe I wasn't). The only thing I have to do now is programatically set the column widths for the data. :)Thanks for the quick reply.