Quantcast
Channel: How to set a fixed header width for boundfield?
Viewing all articles
Browse latest Browse all 6

Re: How to set a fixed header width for boundfield?

$
0
0

Hi aspnewcoding,

aspnewcoding

I am trying to set a specific header width and item width with wrap = true. The reason so is because I do not want the wrap to reduce the width of the column too much that the data breaks up unnecessarily.

You could first refer to the method in the following thread that adds a DIV inside the ItemTemplate and then adds the style to this DIV to hide the spare characters to keep the column has a specific width. If its not what you want, could you take a look at the following second thread.

http://stackoverflow.com/questions/8266580/asp-net-setting-width-of-databound-column-in-gridview

http://stackoverflow.com/questions/4191262/fixed-header-column-width-in-gridview

I hope its useful to you.

Best Regards,

Weibo Zhang


Viewing all articles
Browse latest Browse all 6

Latest Images

Trending Articles





Latest Images