|
Hello, I got a problem with a project. I have an application that shows information about the clients each on separate datagriview. Yet I don't know how many datagrids I will have to show on a form as it depends on the number of clients served by the telemarketing worker. I know that there is a component calledrepeater in ASP yet I need to create a winform app. Can anyone help me with that? Thanks in advance. - Moved byTaylorMichaelLMVPFriday, September 18, 2009 3:26 PMWinForms related (From:Visual C# General)
-
| | Lukasz Brodziak Friday, September 18, 2009 3:17 PM | I would recommend doing more of a master/detail view in this situation - especially if you don't know how many datagrids you would need. A DataGridView is a fairly resource-heavy control. It'd be much cleaner (and easier to handle, both for you and the user) to maintain a list of clients and have the datagridview bound to the current client. Otherwise, you can always make a user control with your client info (the datagridview, etc), and just construct them on the fly and add them to your form, one per client, in code (instead of using the designer). This will work, but again, I think I'd avoid this approach myself.
Reed Copsey, Jr. - http://reedcopsey.com- Marked As Answer byLing WangMSFT, ModeratorFriday, September 25, 2009 2:09 PM
-
| | Reed Copsey, Jr. Friday, September 18, 2009 3:51 PM | Some third party data grid controls will handle this directly, but the built-in DataGridView in Windows Forms does not do this. For example, if you wanted to use the DevExpress DataGrid controls , you can do master-detail views in a single "grid", with scrolling built-in (and sorting/grouping/etc).
Reed Copsey, Jr. - http://reedcopsey.com- Marked As Answer byLing WangMSFT, ModeratorFriday, September 25, 2009 2:09 PM
-
| | Reed Copsey, Jr. Monday, September 21, 2009 6:07 PM | I would recommend doing more of a master/detail view in this situation - especially if you don't know how many datagrids you would need. A DataGridView is a fairly resource-heavy control. It'd be much cleaner (and easier to handle, both for you and the user) to maintain a list of clients and have the datagridview bound to the current client. Otherwise, you can always make a user control with your client info (the datagridview, etc), and just construct them on the fly and add them to your form, one per client, in code (instead of using the designer). This will work, but again, I think I'd avoid this approach myself.
Reed Copsey, Jr. - http://reedcopsey.com- Marked As Answer byLing WangMSFT, ModeratorFriday, September 25, 2009 2:09 PM
-
| | Reed Copsey, Jr. Friday, September 18, 2009 3:51 PM | I also thought about the client list approach. Yet is it possible to view several separated tabular view ina single Datagridview and simply scroll through them? | | Lukasz Brodziak Monday, September 21, 2009 6:54 AM | Some third party data grid controls will handle this directly, but the built-in DataGridView in Windows Forms does not do this. For example, if you wanted to use the DevExpress DataGrid controls , you can do master-detail views in a single "grid", with scrolling built-in (and sorting/grouping/etc).
Reed Copsey, Jr. - http://reedcopsey.com- Marked As Answer byLing WangMSFT, ModeratorFriday, September 25, 2009 2:09 PM
-
| | Reed Copsey, Jr. Monday, September 21, 2009 6:07 PM |
|