开发者

How can I use a Button control instead of LinkButton for gridview sorting in ASP.Net

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜