Velocity Reviews

Velocity Reviews (http://www.velocityreviews.com/forums/index.php)
-   ASP .Net (http://www.velocityreviews.com/forums/f29-asp-net.html)
-   -   How to auto resize the columns of a gridview after loading the data (http://www.velocityreviews.com/forums/t503433-how-to-auto-resize-the-columns-of-a-gridview-after-loading-the-data.html)

Robson Siqueira 05-01-2007 09:06 PM

How to auto resize the columns of a gridview after loading the data
 
Hi,

I would like to auto resize the columns of a grid view after loading the
data. This would be basically performed using the largest size of each
column, based on the data it contains.

Do you guys know any way of doing this? This is pretty straight forward in
Windows. But it looks a little bit complicate when doing it on web.

Thanks,

Robson Siqueira



bruce barker 05-01-2007 09:51 PM

Re: How to auto resize the columns of a gridview after loading thedata
 
this is the behavior if don't set style widths. if you want to do it in
code, then its done with client script. pick up any good javascript book
and it should give you the info.

-- bruce (sqlwork.com)



Robson Siqueira wrote:
> Hi,
>
> I would like to auto resize the columns of a grid view after loading the
> data. This would be basically performed using the largest size of each
> column, based on the data it contains.
>
> Do you guys know any way of doing this? This is pretty straight forward in
> Windows. But it looks a little bit complicate when doing it on web.
>
> Thanks,
>
> Robson Siqueira
>
>



All times are GMT. The time now is 10:23 PM.

Powered by vBulletin®. Copyright ©2000 - 2014, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.