Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. WPF
  4. WPF Data Grid Auto Height problem

WPF Data Grid Auto Height problem

Scheduled Pinned Locked Moved WPF
wpfcsharpcsswcfhelp
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • W Offline
    W Offline
    wasimsharp
    wrote on last edited by
    #1

    hi friends i use wpf Datagrid. <Custom:DataGrid VirtualizingStackPanel.IsVirtualizing="True" VirtualizingStackPanel.VirtualizationMode="Recycling" EnableRowVirtualization="True" SelectionUnit="FullRow" RowBackground="Aqua" AlternatingRowBackground="Beige" IsReadOnly="True" SelectionMode="Extended" AutoGenerateColumns="False" Background="White" FontWeight="Bold" FontFamily="Arial" FontSize="10.667" Height="Auto" x:Name="dgChronicDiagnosis" HorizontalGridLinesBrush="{x:Null}" VerticalScrollBarVisibility="Auto" MinHeight="0" VerticalGridLinesBrush="{x:Null}" GridLinesVisibility="None" RowDetailsVisibilityMode="Collapsed" BorderBrush="{x:Null}" ColumnHeaderStyle="{DynamicResource DataGridColumnHeaderStyle}" RowStyle="{DynamicResource DataGridRowStyle1}" BorderThickness="0" Margin="0,4,0,0" VerticalAlignment="Center" VerticalContentAlignment="Stretch" IsSynchronizedWithCurrentItem="True" AreRowDetailsFrozen="True"> <Custom:DataGrid.Columns> <Custom:DataGridTemplateColumn Header="OnSet" Width="10*" CellStyle="{DynamicResource TempDataGridCellStyle}" > <Custom:DataGridTemplateColumn.CellTemplate> <DataTemplate > <TextBlock Text="{Binding ONSET}" FontFamily="Arial" FontSize="10.667"/> </DataTemplate> </Custom:DataGridTemplateColumn.CellTemplate> </Custom:DataGridTemplateColumn> </Custom:DataGrid.Columns> </Custom:DataGrid> Now when i bind the Data grid with list having one record there i lot of white space as record increases the space also increases

    WANTED wasim khan(Killed 50 Innocent Buggs, Distroyed 200 Exception, make 5 Project Hostage) any Compnay Hire him will pay 30,000. Best place where u can get him is Sorcim Technologies Murre Road RWP

    S 1 Reply Last reply
    0
    • W wasimsharp

      hi friends i use wpf Datagrid. <Custom:DataGrid VirtualizingStackPanel.IsVirtualizing="True" VirtualizingStackPanel.VirtualizationMode="Recycling" EnableRowVirtualization="True" SelectionUnit="FullRow" RowBackground="Aqua" AlternatingRowBackground="Beige" IsReadOnly="True" SelectionMode="Extended" AutoGenerateColumns="False" Background="White" FontWeight="Bold" FontFamily="Arial" FontSize="10.667" Height="Auto" x:Name="dgChronicDiagnosis" HorizontalGridLinesBrush="{x:Null}" VerticalScrollBarVisibility="Auto" MinHeight="0" VerticalGridLinesBrush="{x:Null}" GridLinesVisibility="None" RowDetailsVisibilityMode="Collapsed" BorderBrush="{x:Null}" ColumnHeaderStyle="{DynamicResource DataGridColumnHeaderStyle}" RowStyle="{DynamicResource DataGridRowStyle1}" BorderThickness="0" Margin="0,4,0,0" VerticalAlignment="Center" VerticalContentAlignment="Stretch" IsSynchronizedWithCurrentItem="True" AreRowDetailsFrozen="True"> <Custom:DataGrid.Columns> <Custom:DataGridTemplateColumn Header="OnSet" Width="10*" CellStyle="{DynamicResource TempDataGridCellStyle}" > <Custom:DataGridTemplateColumn.CellTemplate> <DataTemplate > <TextBlock Text="{Binding ONSET}" FontFamily="Arial" FontSize="10.667"/> </DataTemplate> </Custom:DataGridTemplateColumn.CellTemplate> </Custom:DataGridTemplateColumn> </Custom:DataGrid.Columns> </Custom:DataGrid> Now when i bind the Data grid with list having one record there i lot of white space as record increases the space also increases

      WANTED wasim khan(Killed 50 Innocent Buggs, Distroyed 200 Exception, make 5 Project Hostage) any Compnay Hire him will pay 30,000. Best place where u can get him is Sorcim Technologies Murre Road RWP

      S Offline
      S Offline
      Super Lloyd
      wrote on last edited by
      #2

      You might have more luck on their own forum! http://wpf.codeplex.com/Thread/List.aspx[^]

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups