Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 126205
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T05:16:51+00:00 2026-05-11T05:16:51+00:00

I am just starting out on Silverlight using version 2.0. I wanted to show

  • 0

I am just starting out on Silverlight using version 2.0. I wanted to show a few data grids on the page and got this going OK by dropping each into a grid cell. I then thought I would try adding a grid splitter using the following markup:

<UserControl xmlns:basics='clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls'  xmlns:data='clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Data'  x:Class='SilverlightApplication1.Page'     xmlns='http://schemas.microsoft.com/winfx/2006/xaml/presentation'      xmlns:x='http://schemas.microsoft.com/winfx/2006/xaml'   Loaded='UserControl_Loaded'>     <Grid x:Name='LayoutRoot' Background='White'>         <Grid.ColumnDefinitions>             <ColumnDefinition></ColumnDefinition>             <ColumnDefinition Width='Auto'></ColumnDefinition>             <ColumnDefinition></ColumnDefinition>         </Grid.ColumnDefinitions>         <Grid.RowDefinitions>             <RowDefinition></RowDefinition>             <RowDefinition></RowDefinition>         </Grid.RowDefinitions>         <basics:GridSplitter Grid.RowSpan='2' Grid.Row='0' Grid.Column='1' HorizontalAlignment='Left' Width='5' VerticalAlignment='Stretch' ></basics:GridSplitter>         <data:DataGrid Name='TLGrid' Grid.Row='0' Grid.Column='0'>         </data:DataGrid>         <data:DataGrid Name='TRGrid' Grid.Row='0' Grid.Column='2'>         </data:DataGrid>         <data:DataGrid Name='BLGrid' Grid.Row='1' Grid.Column='0'>         </data:DataGrid>         <data:DataGrid Name='BRGrid' Grid.Row='1' Grid.Column='2'>         </data:DataGrid>     </Grid> </UserControl> 

I expected to be able to drag the splitter around to resize the other two columns. When I drag the bar, both of the other columns shrink. Can anyone explain why?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-11T05:16:51+00:00Added an answer on May 11, 2026 at 5:16 am

    You don’t need the middle column for the gridsplitter. The Gridsplitter will bind to the right edge of column 0 if you put the splitter in column 0. You can add a small margin to the grids in the left-hand side so that you don’t lose the last 5 pixels.

    <Grid x:Name='LayoutRoot' Background='White'>     <Grid.ColumnDefinitions>         <ColumnDefinition Width='1*'/>         <!--<ColumnDefinition Width='Auto'/>-->         <ColumnDefinition Width='1*'/>     </Grid.ColumnDefinitions>     <Grid.RowDefinitions>         <RowDefinition Height='1*'/>         <RowDefinition Height='1*'/>     </Grid.RowDefinitions>      <data:DataGrid Name='TLGrid' Grid.Row='0' Grid.Column='0' />     <data:DataGrid Name='BLGrid' Grid.Row='1' Grid.Column='0'/>      <!-- Moved the grid splitter to column 0 -->     <basics:GridSplitter Grid.RowSpan='2' Grid.Row='0' Grid.Column='0' Width='5' />      <data:DataGrid Name='TRGrid' Grid.Row='0' Grid.Column='2' />     <data:DataGrid Name='BRGrid' Grid.Row='1' Grid.Column='2' />         </Grid> 
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm just starting out with using Core Data on the iPhone SDK and I'm
Just starting out, this should be a simple one but I haven't been able
I'm just starting out with the Entity Framework and ADO.NET Data Services and I've
I'm just starting out with Core Data and I have an iPhone Core Data
I am just starting out C++, so sorry if this is a dumb question.
Just starting out with an iPhone application using xcode 4.2. I understand that it
Just starting out with C#, so this may be overly simple that I keep
I'm just starting out with Java, but my boss is pushing for this. I've
Only just starting out with jQuery and I'm sure this is basic stuff for
Just starting out on C# and I keep getting stuck on this particular piece

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.