Automatically size all columns

ilikefree

Vista Guru
Gold Member
For people using the details view that wish to have it size all columns automatically copy and paste this into notepad and save as .bat then double click it.

this.ultraListView1.ViewSettingsDetails.AutoFitColumns =
Infragistics.Win.UltraWinListView.AutoFitColumns.ResizeAllColumns;

EDIT:Wrong information only works with another program installed first.
 
Last edited:

My Computer

System One

  • Manufacturer/Model
    Lenovo Thinkpad T400
    CPU
    Intel Mobile Core 2 Duo P8700 @ 2.53GHz
    Motherboard
    LENOVO 64734VM
    Memory
    2.00GB Single-Channel DDR3 @ 531MHz
    Graphics Card(s)
    Intel Mobile Intel 4 Series Express Chipset Family
    Sound Card
    Conexant 20561 SmartAudio HD
    Monitor(s) Displays
    15 inch
    Screen Resolution
    1280 x 800
    Hard Drives
    1x 180GB Intel 530 series SSD
    1 x 120GB Hitachi 5400rmp
    1 x 650GB Western Digital Elements 5400rpm
    1x 1Tb Western Digital Elements 5400rpm
    Internet Speed
    Medium for New Zealand
    Other Info
    Weakest part of my computer is the graphics chipset.
    Only ever used a laptop.
    Also use USB Freeview TV Card
    Lenovo Docking Station
    External Speakers
    Other bits a pieces as needed
For people using the details view that wish to have it size all columns automatically copy and paste this into notepad and save as .bat then double click it.

this.ultraListView1.ViewSettingsDetails.AutoFitColumns =
Infragistics.Win.UltraWinListView.AutoFitColumns.ResizeAllColumns;

I have a problem..... Does it apply to Win 7 too ?
I use Win 7 and can't save it as .bat file.
Copy/pasted to notepad > File > Save As > it allows only either Text Documents (*txt) or All files (*.*). No .bat file type option.
 

My Computer

My Computer

System One

  • Manufacturer/Model
    Lenovo Thinkpad T400
    CPU
    Intel Mobile Core 2 Duo P8700 @ 2.53GHz
    Motherboard
    LENOVO 64734VM
    Memory
    2.00GB Single-Channel DDR3 @ 531MHz
    Graphics Card(s)
    Intel Mobile Intel 4 Series Express Chipset Family
    Sound Card
    Conexant 20561 SmartAudio HD
    Monitor(s) Displays
    15 inch
    Screen Resolution
    1280 x 800
    Hard Drives
    1x 180GB Intel 530 series SSD
    1 x 120GB Hitachi 5400rmp
    1 x 650GB Western Digital Elements 5400rpm
    1x 1Tb Western Digital Elements 5400rpm
    Internet Speed
    Medium for New Zealand
    Other Info
    Weakest part of my computer is the graphics chipset.
    Only ever used a laptop.
    Also use USB Freeview TV Card
    Lenovo Docking Station
    External Speakers
    Other bits a pieces as needed
Thanks for the feedback
 

My Computer

System One

  • Manufacturer/Model
    Lenovo Thinkpad T400
    CPU
    Intel Mobile Core 2 Duo P8700 @ 2.53GHz
    Motherboard
    LENOVO 64734VM
    Memory
    2.00GB Single-Channel DDR3 @ 531MHz
    Graphics Card(s)
    Intel Mobile Intel 4 Series Express Chipset Family
    Sound Card
    Conexant 20561 SmartAudio HD
    Monitor(s) Displays
    15 inch
    Screen Resolution
    1280 x 800
    Hard Drives
    1x 180GB Intel 530 series SSD
    1 x 120GB Hitachi 5400rmp
    1 x 650GB Western Digital Elements 5400rpm
    1x 1Tb Western Digital Elements 5400rpm
    Internet Speed
    Medium for New Zealand
    Other Info
    Weakest part of my computer is the graphics chipset.
    Only ever used a laptop.
    Also use USB Freeview TV Card
    Lenovo Docking Station
    External Speakers
    Other bits a pieces as needed
Interesting, I like this!
 

My Computer

System One

  • Manufacturer/Model
    Custom built (Myself)
    CPU
    Intel Core i3
    Motherboard
    Asus P7P55-M
    Memory
    8GB DDR3
    Graphics Card(s)
    EVGA Nvidia GTX 550Ti FPB
    Sound Card
    Onboard
    Monitor(s) Displays
    HP w2207h with Acer H213H
    Screen Resolution
    1680x1050 and 1920x1080
    Hard Drives
    1 TB WD Caviar Black 32mb cache,
    750 GB WD Caviar Blue,
    500 GB WD Caviar Blue,
    320 GB WD
    PSU
    Mushkin HP-550 550W Power suppy
    Case
    Cooler Master Elite310
    Cooling
    Air
    Keyboard
    Logitech Access 600
    Mouse
    Microsoft Comfort 1000
    Internet Speed
    15 Mb/s up and down
    Other Info
    I also have an Asus G53SW-A1
Back
Top