This project has moved. For the latest updates, please go here.

Drag column here label in datagrid

Feb 21, 2014 at 2:46 PM
Hello all!

I am using the datagrid control in a large internal app... I don't need the header in the grid that states "Drag column here to group by column".. Is there a way to get rid of that? Comes in handy a lot of times, but have a use case where its not needed.

Thanks
harold
Developer
Feb 21, 2014 at 7:43 PM
Hi,

You can create your own FixedHeader, without the GroupByControl( only using ColumnManagerRow here) :
<xcdg:DataGridControl x:Name="_datagrid" >
         <xcdg:DataGridControl.View>
            <xcdg:TableflowView UseDefaultHeadersFooters="False">
               <xcdg:TableflowView.FixedHeaders>
                  <DataTemplate>
                     <xcdg:ColumnManagerRow/>
                  </DataTemplate>
               </xcdg:TableflowView.FixedHeaders>
            </xcdg:TableflowView>
         </xcdg:DataGridControl.View>
      </xcdg:DataGridControl>
Feb 21, 2014 at 9:00 PM
Awesome! That did it! Thanks very much!

Harold
Nov 8, 2014 at 9:48 PM
How to localize this text?
Developer
Nov 10, 2014 at 6:45 PM
Hi,

To localize the "Drag column here to group by column..." text, the idea is to define your own FixedHeader and to set the GroupByControl.NoGroupContent :
<xcdg:DataGridControl x:Name="_datagrid">
                              <xcdg:DataGridControl.View>
                                 <xcdg:TableflowView UseDefaultHeadersFooters="False">
                                    <xcdg:TableflowView.FixedHeaders>
                                       <DataTemplate>
                                          <StackPanel>
                                             <xcdg:GroupByControl x:Name="groupByControl"
                                                                  NoGroupContent="Enter Localize text here" />
                                             <xcdg:ColumnManagerRow />                                             
                                          </StackPanel>
                                       </DataTemplate>
                                    </xcdg:TableflowView.FixedHeaders>
                                 </xcdg:TableflowView>
                              </xcdg:DataGridControl.View>
</xcdg:DataGridControl>