Click here to Skip to main content
15,913,587 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
<DataGrid x:Name="GrdMaterials" AutoGenerateColumns="False" Width="1488" HorizontalAlignment="Left" VerticalAlignment="Stretch" Canvas.Left="2" Canvas.Top="10" FontFamily="Times New Roman" MaxHeight="462">

    <DataGrid.Columns>

        <DataGridTextColumn Header="Paper Category"  Width="100"  Binding="{Binding MatCat}"/>
        <DataGridTextColumn Header="Material ID"  Width="70"  Binding="{Binding MatId}"/>
        <DataGridTextColumn Header="Material Description"  Width="350"  Binding="{Binding MatDesc}"/>
        <DataGridTextColumn Header="w"  Width="70" Visibility="Hidden" Binding="{Binding Width}"/>
        <DataGridTextColumn Header="h"  Width="70" Visibility="Hidden" Binding="{Binding Height}"/>
        <DataGridTextColumn Header="Grammage"  Width="70"  Binding="{Binding MatGram}"/>
        <DataGridTextColumn Header="Last Purchase Price 1000SH" Width="150" Binding="{Binding MatLstPurPris1000Sh}"/>
        <DataGridTextColumn Header="Last Purchase Price 1000KG" Width="150" Binding="{Binding MatLstPurPris1000Kg}"/>
        <DataGridTextColumn Header="Market Price 1000SH" Width="120"  Binding="{Binding MatOldMarket1000Sh}"/>
        <DataGridTextColumn Header="Market Price 1000KG" Width="120"  Binding="{Binding MatOldMarket1000Kg}"/>
        <DataGridTextColumn Header="New Market Price 1000KG" Width="150" Binding="{Binding MatMarket}"/>
        <DataGridCheckBoxColumn Header="Update" Width="50" Binding="{Binding Check}"/>

    </DataGrid.Columns>

</DataGrid>


What I have tried:

Change names binding but slow in scroll its new and never happens with me
Posted
Updated 11-Mar-19 6:43am
Comments
[no name] 11-Mar-19 12:12pm    
The XAML says nothing about the volume or "shape" of the data; which is what you should be looking at.

1 solution

When you have a slow "fill" and "scroll" it's normally because you have far, far too much data in it: users can only cope with maybe 100 row at most, and if you are just dumping your whole DB on them your app will never get used because it will take far too long to find the row they need.

Page your data, provide search and filter options, and present maybe 20 rows at a time. Your app with be faster and more responsive, and your users will be a lot happier.
 
Share this answer
 
v3

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900