Quantcast
Channel: wpftoolkit Discussions Rss Feed
Viewing all articles
Browse latest Browse all 2157

New Post: simple questions

$
0
0
Hi,

1) RowHeight of DataGrid :
Depending on which type of View you are using on the DataGridControl, there are two ways of doing what you wish.

For the TableView, simply set the Style of the DataRow elements to have the Height you need.
<Style TargetType="{x:Type xcdg:DataRow}">
      <Setter Property="Height" Value="40" />
</Style>
For the TableflowView, set its ContainerHeight value to the desired height.
<xcdg:DataGridControl.View>
      <xcdg:TableflowView ContainerHeight="40" />
 </xcdg:DataGridControl.View>
2) Hide GroupByControl
By default, the view in the grid has a FixedHeader containing a groupByControl and a ColumnManagerRow. To remove the GroupByControl, you need to disable the default FixedHeader and create your own :
<xcdg:DataGridControl.View>
            <xcdg:TableflowView UseDefaultHeadersFooters="False">
               <xcdg:TableflowView.FixedHeaders>
                  <DataTemplate>
                     <xcdg:ColumnManagerRow />
                  </DataTemplate>
               </xcdg:TableflowView.FixedHeaders>
            </xcdg:TableflowView>
</xcdg:DataGridControl.View>
3) Hide RowSelectorPane
You can use the property ShowRowSelectorPane from the View :
<xcdg:DataGridControl.View>
            <xcdg:TableflowView  ShowRowSelectorPane="False">
</xcdg:TableflowView>

Viewing all articles
Browse latest Browse all 2157

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>