开发者

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

开发者 https://www.devze.com 2022-12-15 22:19 出处:网络
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 co

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

精彩评论

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