Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
2290
XamGrid itemsource changed at run time but grid not updated
posted

Hi,

I am using XamGrid, I change the itemsource at run time when page load grid is displayed. but when i changed the itemsouce at run time my Datatable was updated but grid not updated. Please help me.

Here is my code.

<ig:XamGrid Grid.Row="1" Name="radGridView1" AutoGenerateColumns="True"
                             ScrollViewer.VerticalScrollBarVisibility="Visible" ScrollViewer.HorizontalScrollBarVisibility="Auto"  ItemsSource="{Binding GetRawData}"        IsAlternateRowsEnabled="False">
            <ig:XamGrid.Columns>                           
                <ig:TextColumn HeaderText="Date" Key="Date" FormatString="{}{0:MM/dd/yy}"></ig:TextColumn>
            </ig:XamGrid.Columns>
        </ig:XamGrid>


GetRawData is a datatable first time when page is loaded grid was populated. but when i changed the datatable at run time according to parameters datatable was updated but grid not updated.


Regards

Sufyan