开发者

How can i give fixed size for each columns in my gridview

I have a Grid view and each column have different length of data. i want to customize each columns according to data.

i have added prope开发者_如何学运维rty ControlStyle-Width="400"

but i didnt see any change when i do a debug run.


Try the ItemStyle-Width attribute on the column elements

<asp:TemplateField ItemStyle-Width="123" ... />
<asp:BoundField ItemStyle-Width="123" ... />
// etc.
0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜