Windows Develop Bookmark and Share   
 index > Windows Forms Designer > Sort Icon in Grid View(Win Forms)
 

Sort Icon in Grid View(Win Forms)

Hi.. How to display Sort Icon by default in all column ofGrid View? I have set Sort property to Automatic. But I want to display that sort icon in column. How to do it?

Help me in this.. Thank you..

Ganapatisb  Monday, August 31, 2009 5:00 AM

try this:

You can use the SortMode and HeaderCell.SortGlyphDirection Proprerties to show the icon on the column header

Check this link for further information

http://msdn2.microsoft.com/en-us/library/system.windows.forms.datagridviewcolumnheadercell.sortglyphdirection.aspx


Please mark the post as answer if it is helpfull to you because it boosts the members to answer more and more.
_SuDhiR_  Monday, August 31, 2009 5:29 AM

try this:

You can use the SortMode and HeaderCell.SortGlyphDirection Proprerties to show the icon on the column header

Check this link for further information

http://msdn2.microsoft.com/en-us/library/system.windows.forms.datagridviewcolumnheadercell.sortglyphdirection.aspx


Please mark the post as answer if it is helpfull to you because it boosts the members to answer more and more.
_SuDhiR_  Monday, August 31, 2009 5:29 AM
Iam not getting HeaderCell.SortGlyphDirection option. Where exactly it will be? i am doing these operation in Windows Forms. Is this options available?
Ganapatisb  Tuesday, September 01, 2009 12:12 PM

You can use google to search for other answers

Custom Search

More Threads

• Passing Checkbox.Text if checked
• form designer errors
• Disappearing Tab Controls
• Drag drop source file from Solution Explorer onto a form in designer
• whats the last event fired from form before end user get controls?
• How can I force Visual Studio to generate a constructor for nested types instead of using binary serialization
• [RESOLVED] Problem using Form Templates
• Designer keeps changing my TrackBar settings! (min= -60, max=10 becomes min=max=60!)
• Holding TreeNode Postion
• Help with Data Export via VS2005