Click here to Skip to main content
15,886,788 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
How To increase the last column width to fit to entire grid?
im using The DataGrid to show records and Dataset to load datafrom database..
Posted
Comments
Kschuler 10-Aug-11 10:26am    
Is this a web app or a windows forms?
maddykumfa 16-Aug-11 5:07am    
its a windows forms...

1 solution

(Assumming WPF/XAML DataGrid)

Set the width of the column to "*"

That essentially means consume the rest of the space.

Note that "Auto" will consume the needed space.
 
Share this answer
 
v2
Comments
maddykumfa 16-Aug-11 5:07am    
its a windows forms...

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900