Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to get columns to stretch?
Message
De
19/11/2004 18:41:16
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
Information générale
Forum:
ASP.NET
Catégorie:
Formulaires
Divers
Thread ID:
00963097
Message ID:
00963113
Vues:
8
>How can I get the grid columns to "stretch" over the available grid width?
>Example:
>Lets say I have a datagrid on my form at the datagrid's width is 300. I have 3 columns in my grid. Each column's width is 75. 3 multiplied with 75 is equal to 225, which means I have 75 pixels left over.
>Or what if I make the column's width 100, now my grid look fine until the silly user decides to maximize the form (I have anchored my datagrid) and now I get several pixels left over.
>Or what if the user doesn't maximize the form but decreases the second column's width, now I've got pixels left over.
>
>I hope my examples make sense. What I would like to happend is that the right-most column adjusts acording to what the silly user does and expands or shrinks to leave no pixels left over?
>
>I seem to remember this is how it was in VFP by default.
>
>Is it any way to do this? Is it the "best" way to do it only to adjust the right-most column? Or should all the columns adjust proportionately to acheive this?
>
>Thanks,
>Einar

Einar,
As being one of those silly users I think it's default behavior in VFP grids too. Check syncfusion.com. I'm sure you'd find one entry in FAQ dealing with this (in theory you'd add a delegate for resize and size your colums accordingly).
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform