Click here to Skip to main content
15,898,010 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
hi,

< grid >
< dockpanel >
< border dockpanel.dock="Top" >
< grid >
< datagrid >
...
...
...
< /datagrid >
< /grid >
< /border >
< /dockpanel >
< /grid >

this the structure i used in wpf . i want to fill datagrid (dock.fill) to the grid?
Posted
Updated 24-Sep-14 4:32am
v3
Comments
ZurdoDev 24-Sep-14 10:56am    
Where are you stuck?
k.sankar ganesh 24-Sep-14 12:42pm    
i need to resize the datagrid to the grid size dynamically

1 solution

You had to tell datagrid to stretch upto the provided space by setting below properties :


HorizontalAlignment="Stretch"

and

VerticalAlignment="Stretch"
 
Share this answer
 

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