Solved

How to manually adjust column widths of a GridView which has auto-generated columns?

Posted on 2012-12-29
1
846 Views
Last Modified: 2013-01-09
I tried various solutions suggested on other sites to adjust column widths of a GridView which has auto-generated columns.

Few tips worked which suggested using:

style = "table-layout: fixed"

Open in new window


inside GridView tag and also using few lines of code from code-behind.

But the CSS property mentioned above is not working on IE 8.0 and earlier versions. It only works on IE 9.0.

Is there any other way to increase or decrease the column width of a GridView, which has auto-generated columns, manually from code-behind?
0
Comment
Question by:rpkhare
1 Comment
 
LVL 16

Accepted Solution

by:
Imran Javed Zia earned 500 total points
Comment Utility
0

Featured Post

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

A quick way to get a menu to work on our website, is using the Menu control and assign it to a web.sitemap using SiteMapDataSource. Example of web.sitemap file: (CODE) Sample code to add to the page menu: (CODE) Running the application, we wi…
This article is for Object-Oriented Programming (OOP) beginners. An Interface contains declarations of events, indexers, methods and/or properties. Any class which implements the Interface should provide the concrete implementation for each Inter…
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

728 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now