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

Parents
No Data
Reply
  • 35319
    posted

    Hello,

     

    Thank you for your post. I have been looking into your issue and I created a sample application(XamDataGridBindToDataTable.zip) in order to reproduce it with success. Would you please look through it and modify it in order to meet exactly your scenario in order to provide you with more accurate assistance.

     

    Looking forward to hearing from you.

     

    XamDataGridBindToDataTable.zip
Children