I currently am usi开发者_JAVA百科ng an ASP.Net gridview control and when a sortexpression is defined on the column, the column header is rendered as a linkbutton. I want to know if it is possible to convert that LinkButton to a Button control and preserve all the functionality. I cannot use TemplateColumns because I using DataControlField implementation to create columns and add them to the grid.
Thanks a lot.
I don't think it's possible.
Your best bet would be to use CSS to style it like a button. Obviously it won't look like a default UI button, but this site doesn't use default UI buttons.
精彩评论