Click here to Skip to main content
15,891,607 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi All,

I have a Grid and name as "GR1" in Xml. Now I am dynamically creating rows and column and filling the values and want a scoll Viewver on the basis of inserted record from code behind .

Plz help
Posted
Comments
arti s.v 17-Sep-12 3:00am    
did u mean scroll viewer?

1 solution

I think you just wrap your grid in a ScrollViewer like this:
XML
<ScrollViewer HorizontalScrollBarVisibility="Auto"     
              VerticalScrollBarVisibility="Auto"> 
   <Grid>
        <!-- Your content here -->
    </Grid>
</ScrollViewer


Adjust those two ScrollBarVisibility properties to your liking (Hidden, Visible, Auto).
 
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