开发者

Quickly format all columns in gridview

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜