Grouping Icons


03-18-2009, 2:46 PM
I cannot seem to get the + / - icons to change.  I really want to have them vertically aligned in the middle. But if I can't do that I want to get rid of them.  I have changed the row height of the groupheader rows, so my text is aligned in the middle but this icon is at the top!!!

Re: Grouping Icons


03-19-2009, 3:16 AM

pryan,

You can use SharpGrid's OutlineIcons property to tell SharpGrid how to display the group icons:
http://www.datadynamics.com/Help/SharpGrid/propertySGGridOutlineIcons.html.
Unfortunately, there is no built-in feature to align group icons vertically but by using OutlineIcons property you can hide any group expand or collapse icons; or display user-defined group expand and collapse icons:
http://www.datadynamics.com/Help/SharpGrid/propertySGGroupCollapseIcon.html
http://www.datadynamics.com/Help/SharpGrid/propertySGGroupExpandIcon.html

Thank you,
Andrey T.

Re: Grouping Icons


08-31-2009, 9:08 AM
Thanks. However, I do not get the OutlineIcons as a property of the Grid???

Re: Grouping Icons


08-31-2009, 10:44 PM

pryan,

You can set OutlineIcons property like this:

SGGrid1.OutlineIcons = sgCustomOutlineIcons

After this you can set groups expand and collapse icons, for example:

 SGGrid1.GroupExpandIcon = sgbipFirst + 3
 SGGrid1.GroupCollapseIcon = sgbipFirst + 2

I've attached a sample which demonstrates this.

Thank you,
Andrey T.

Re: Grouping Icons


09-10-2009, 9:45 AM
Thanks. But as I said, I do not have the OutlineIcons as a property of the grid. I've attached a screenshot of the code with the intelli-search popup of properties of the grid. Am I missing something???

Re: Grouping Icons


09-10-2009, 10:12 PM

pryan,

This popup is showing OutlineIcons property in my testing. What is your operational system? Also, please ensure that you are using the latest Visual Basic 6 SP 6 and the latest SharpGrid version 2.3.0.1127 which can be found here:
http://www.datadynamics.com/forums/35/ShowForum.aspx

Thank you,
Andrey T.