Home Forums WPF controls Xceed DataGrid for WPF Searching this forum

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • User (Old forums)
    Member
    Post count: 23064
    #22101 |

    I get an error whenever I try to search the forum – the system cannot find the file specified!

    I’m trying to disable Virtualization on one of my grids, and am so sure there has been a post on this already? Can you point me to it please?

    Cheers
    Neil

    Imported from legacy forums. Posted by nmosafi (had 2567 views)

    Xceed Support
    Member
    Post count: 5658

    Hi Neil,

    We are aware of the issue with the forum search and are working on a solution… Meanwhile you can search from the main page, and select the product on which you want to find information (<a href=”http://forums.xceed.com/Forums/Search/default.aspx?searchText=”>http://forums.xceed.com/Forums/Search/default.aspx?searchText=</a&gt;);

    For the Virtualization question, you can:

    1. Redo the template of the DataGridControl and set the “CanContentScroll” property of the TableViewScrollViewer to “False”. (see code sample #1 in next post)

    2. Apply an implicit style on the DataGridControl for the TableViewScrollViewer and setting the “CanContentScroll” to “False” in a setter. (see code sample #2 in next post)

    Imported from legacy forums. Posted by Marcus [Xceed] (had 308 views)

    Xceed Support
    Member
    Post count: 5658

    Sample #1:
    <code>
    <!– Template extracted from the TableView.GridElementTemplates.xaml file from the Themes\Common folder –>
    <ControlTemplate TargetType=”local:DataGridControl”>

    <Border Background=”{TemplateBinding Background}”
    BorderBrush=”{TemplateBinding BorderBrush}”
    BorderThickness=”{TemplateBinding BorderThickness}”>

    <!– The TableViewScrollViewer takes care of laying out the various sections of
    a DataGrid in TableView: FixedHeaders, FixedFooters, RowSelectorPane, etc. –>
    <views:TableViewScrollViewer x:Name=”PART_ScrollViewer”
    ShowRowSelectorPane=”{markup:ViewBinding ShowRowSelectorPane}”
    Padding=”{TemplateBinding Padding}”
    CanContentScroll=”False”>

    <ItemsPresenter />

    </views:TableViewScrollViewer>
    </Border>

    </ControlTemplate>
    </code>

    Sample #2:

    <code>
    <xcdg:DataGridControl x:Name=”grid”>
    <xcdg:DataGridControl.Resources>
    <Style TargetType=”{x:Type xcdg:TableViewScrollViewer}”>
    <Setter Property=”CanContentScroll” Value=”False”/>
    </Style>
    </xcdg:DataGridControl.Resources>
    </xcdg:DataGridControl>
    </code>

    Imported from legacy forums. Posted by Marcus [Xceed] (had 4005 views)

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.