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

  • Home
  • SEARCH
  • 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 359785
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T12:25:36+00:00 2026-05-12T12:25:36+00:00

Hai presently i have grid like this. <Grid Name=tGrid1 Grid.Row=0 Background=Black > </Grid> <Grid

  • 0

Hai
presently i have grid like this.

    <Grid  Name="tGrid1"  Grid.Row="0" Background="Black" >
    </Grid>



    <Grid Name="Grid2"  Grid.Row="1"  Background="LightBlue" >
    </Grid>



    <Grid Name="Grid3"  Grid.Row="2" Background="LightGray" Height="auto" >

    </Grid>




    <Grid Name="Grid4"   Grid.Row="3"   Background="LightGreen" >
    <Button HorizontalAlignment="Left" IsEnabled="True" Margin="13.5,5,0,5" Name="TestBtn" Width="50" Click="test_Click" >Test</Button>
    </Grid>

</Grid>

What i want is, when i click the Test button Grid 1 and Grid 2 has to collapsed and the space has to be occupied with Grid 3.That means the out of total height of 500 of Outer Grid , Grid 3 should occupy height=465 and Grid 4 should ocupy Height=35.
How can i do this? How should i change my height definitions of Grid ?
Thanx in advance
Kaja

  • 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. Editorial Team
    Editorial Team
    2026-05-12T12:25:36+00:00Added an answer on May 12, 2026 at 12:25 pm

    Hai
    i found the solution.

      <DockPanel  >
     <Grid  Name="tGrid1"  Grid.Row="0" DockPanel.dock="Top" Background="Black" >
     </Grid>
    
     <Grid Name="Grid2"  Grid.Row="1"  DockPanel.dock="Top" Background="LightBlue" >
     </Grid>
    
    <Grid Name="Grid4"   Grid.Row="3"  DockPanel.dock="Bottom"  Background="LightGreen" >
    <Button HorizontalAlignment="Left" IsEnabled="True" Margin="13.5,5,0,5" Name="TestBtn" Width="50" Click="test_Click" >Test</Button>
     </Grid>
    
    <Grid Name="Grid3"  Grid.Row="2" DockPanel.dock="Top" Background="LightGray" Height="auto" >
    
    </Grid>
    </DockPanel>
    
    
    
    
     private void test_Click(object sender, RoutedEventArgs e)
      {
         tGrid1.visibility=visibility.collapsed;
    Grid2.visibility=Visibility.collapsed;
      }
    

    This works fine.
    Thank you
    Kaja

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Hai I am having a form which contains a filetype like this <tr><td> <input
hai I have a Spanish site in php. In this a mail body contain
hai guys, I have imported my gmail contacts from gmail and a file name
hai i am very new to jquery and jqgrid.. i have implemented a grid...but
I am confused with the following result, I have a string like this:- string
hai friends I am one dataset like this ds like three columns this: tblkey
Hai Freinds So far i have used this coding to create a custom Control
Hai Techies, I have some stored procedure which was written in SQL server.Now i
Hai I have an application which is designed in netbeans6.0.1 where i need to
Hai I have developed a standalone application in which when an user logs in,

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.