Forums

Browse by Tags

> All Tags > WPF > DataTemplate
  • Re: WPF RichTextBox as Cell Editor for DXGrid?

    Hi, Actually, at present the XtraGrid can only show rich text content in readonly mode. You can achieve this with the DXGrid as well by using custom cell and/or row template. To learn more about it, please refer to the Row Template demo (select the Mail Merge option) and other samples where the GridColumn...
    Posted to WPF (Forum) by Vitaly (DevExpress) on 2/5/2009
    Filed under: DXGrid, WPF, DataTemplate, Data Binding
  • Re: Activate ContextMenu on Header

    Hi Simone, You can achieve this by using the GridColumnView.HeaderTemplate property: <dxg:GridControl.View> <dxg:GridColumnView> <dxg:GridColumnView.HeaderTemplate> <DataTemplate> <ItemsControl ClipToBounds="True" dxg:GridColumn.HeaderPresenterType="Headers"...
    Posted to WPF (Forum) by Vitaly (DevExpress) on 2/3/2009
    Filed under: DXGrid, WPF, DataTemplate
  • Row Detail Template - ScrollBar template

    Hi, I wrote a row detail template after the RowTemplate Demo. In my template, I have some labels, some textblocks and a TextBox. In some of the rows, the textbox is filled with a large amount of data. I set the MaxHeight property of theTextBox to 300 and the VerticalScrollBarVisibility to True. Now the...
    Posted to WPF (Forum) by Bogdan Pirau on 1/30/2009
    Filed under: DXGrid, WPF, DataTemplate, appearance, custom theme
  • Re: HeaderTemplate sample

    Hi Rinaldo, To change text style in the column header, use the code similar to the following: <dxg:GridColumn.HeaderTemplate> <DataTemplate> <TextBlock Text="{Binding}" FontSize="30" FontStyle="Italic" Foreground="Red"/> </DataTemplate>...
    Posted to WPF (Forum) by Vitaly (DevExpress) on 11/12/2008
    Filed under: DXGrid, WPF, DataTemplate, Data Binding
  • Re: Looping through rows

    Hi George, In general, it is impossible to iterate through rows using the visual tree, because the check box visual element is created only when a row is visible. However, if checkboxes in the column are bound to the data source field values, you can change the values of a corresponding field in the...
    Posted to WPF (Forum) by Vitaly (DevExpress) on 11/12/2008
    Filed under: DXGrid, WPF, DataTemplate, Data Binding, Unbound columns
  • Re: Tool Tip and Row Data

    Andrew, This task can be accomplished using data template selectors: public class ToolTipTemplateSelctor : DataTemplateSelector { public override DataTemplate SelectTemplate(object item, DependencyObject container) { GridCellData data = (GridCellData)item; int value = (int)data.Value; FrameworkElement...
    Posted to WPF (Forum) by Vitaly (DevExpress) on 10/14/2008
    Filed under: DXGrid, WPF, DataTemplate, Data template selectors
  • Tool Tip and Row Data

    Refering to the demo. Is there a way to change the datatemplate on the fly depending on a value of a col in the currently selected row in the grid? I.e. if colA = True then display the tooltip with DataTemplate x:key="A" if colA = False then display the tooltip with DataTemplate x:key="B"...
    Posted to WPF (Forum) by andrew witkowski on 10/13/2008
    Filed under: DXGrid, WPF, DataTemplate, row index
  • Re: Grouping Col Header

    Hi Andrew, You can define a custom group value template as follows: <dxg:GridColumnView x:Name="view"> <dxg:GridColumnView.GroupValueTemplate> <DataTemplate> <TextBlock Padding="7,0,0,0" VerticalAlignment="Center" Text="{Binding Path=Value}"...
    Posted to WPF (Forum) by Vitaly (DevExpress) on 10/13/2008
    Filed under: DXGrid, groups, WPF, DataTemplate, Grouping
  • Re: Embedding custom controls in grid cells?

    Hi Sidharth, Any control can be embedded into a cell using the GridColumn.CellTemplate property. Please refer, for instance, to the LINQ Server Mode demo, to see sample. What concerns using a combo box as cell content, it is possible to make a combo box edit a data object property directly. However,...
    Posted to WPF (Forum) by Vitaly (DevExpress) on 9/10/2008
    Filed under: DXGrid, WPF, DataTemplate, custom controls, combo-box
  • Re: DXGrid template + export

    Hello Christian, Thank you for your interest in DXGrid! As for your questions, here are the answers: 1. You should write your DataTemplate and DataTemplateSelector and set them to the GridColumnView.DataRowTemplate and GridColumnView.DataRowTemplateSelector properties. For example, refer to the "Row...
    Posted to WPF (Forum) by Alan (DevExpress) on 8/14/2008
    Filed under: DXGrid, exporting, WPF, printing, DataTemplate
1 2 Next
More from DevExpress
Live Chat
Have a pre-sales question?
Need assistance with your evaluation?
We are here to help.
Chat is one of the many ways you can contact members of the DevExpress Team. We are available Monday-Friday between 7:30am and 4:30pm Pacific Time.
If you need additional product information, require pre-sales assistance, or want help with your order, write to us at info@devexpress.com or call us at
+1 (818) 844-3383.