DataGridView row grouping

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi. Anyone have sample code for grouping rows in a DataGridView? We're
evaluating 3rd party grids and want to compare them to the built in grid
functionality.

Thanks

kh
 
Hi kh,
Thanks for your post.

Currently, .Net2.0 DataGridView control did not provide the build-in row
grouping function, and I do not think there is any easy way to customizing
this function.

I know a 3rd party Grid control which implemented this function, if you are
curious, you can give it a look:
http://www.xceedsoft.com/products/GridNet/Top10Reasons.aspx

Thanks!

Best regards,
Terry Fei

Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.
 
Thanks Terry

Yes, I know this functionality is not available in the standard
DataGridView, but having looked at it's implementation I would say it was
possible to extend it to add custom row grouping. I was hoping someone would
have sample code showing how this could be done, or at least provide a couple
of pointers on the likely nature of a solution.

Fwiw, I have used the Xceed grid before and it is excellent. If I can mimic
it's grouping functionality I would be happy.

kh
 
Hi kh,

Thanks for your feedback.

I am not sure why you are so sure that it is easy to customize this
function from standard DataGridView, I do not think it is easy to customize
out. Anyway, if you have Xceed grid, maybe you can use Reflector to view
its implement code, then you may get some idea on the
implementation.(Actually, I am not sure if Xceed grid built on standard
DataGrid/DataGridView controls)

Thanks

Best regards,
Jeffrey Tan
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.
 
Jeffrey

The Xceed grid is build from scratch and derives from Control iirc. I have
already had a look at their code - they've done a wonderful job.

Do the DGV team monitor this forum or is their a better place to get their
attention? I'm sure at least one of their devs would have been thinking about
this. I have a few ideas but this would be a big project (but one I would
love to get my teeth in to).

Many thanks

kh
 
Hi kh,

Thanks for your feedback

Yes, I see your concern. Actually, this issue has been reported to our
product team as bug. It may be added in next release, for more information,
please refer to the link below:
"Suggestion Details: DataGridView: support multi-row headers and
cell-spanning"
http://lab.msdn.microsoft.com/ProductFeedback/viewFeedback.aspx?feedbackid=7
7396675-9cb0-45e6-b0ca-0ca4239329d5

Thanks

Best regards,
Jeffrey Tan
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.
 
Back
Top