开发者

Quickly format all columns in gridview

开发者 https://www.devze.com 2023-02-27 07:31 出处:网络
I have a gridview with a lot of columns, and I wanted开发者_如何学Python them formatted the same way (easy stuff, like ItemStyle=\"solid\").

I have a gridview with a lot of columns, and I wanted开发者_如何学Python them formatted the same way (easy stuff, like ItemStyle="solid").

Is there a quick way to apply the same itemstyle, etc. to all columns in a gridview?

Thank you!


The Grid uses Table elements. Datafields are td and headers and footers are th. So you can define a css class with the table elements and call the CSS Class. Alternately you can use the ItemStyle and AlternatingItemStyle properties of the Gridview.

0

精彩评论

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