none
silverlight page be refreshed automatically

    Question

  • Hello all,

    I have an application in which users post new questions and topics. When they click the submit button, changes are not reflected automatically on either deletion, updation or insertion. Whole page needs to be reloaded again for changes to be reflected.

    Kindly, help me in solving my issue.

    Thanks to all for helping me.

    Monday, May 16, 2011 6:19 AM

Answers

  • In the event handler for event Click of button Submit, you should call method to get data from server to update UI.

    Another way is direct interact with ItemsSource

    List<T> list = datagrid.ItemsSource as List<T>;
    T obj = list.FirstOrDefault(x => x.Id == id);
    list.Remove(obj);
    datagrid.ItemsSource = null;
    datagrid.ItemsSource = list;

    Note that set ItemsSource of datagrid is null before to set new value.

    Hope this helps!

    Monday, May 16, 2011 6:45 AM

All replies

  • In the event handler for event Click of button Submit, you should call method to get data from server to update UI.

    Another way is direct interact with ItemsSource

    List<T> list = datagrid.ItemsSource as List<T>;
    T obj = list.FirstOrDefault(x => x.Id == id);
    list.Remove(obj);
    datagrid.ItemsSource = null;
    datagrid.ItemsSource = list;

    Note that set ItemsSource of datagrid is null before to set new value.

    Hope this helps!

    Monday, May 16, 2011 6:45 AM
  • Hi,

    What control?

    How many DomainContext do you have?

    How about your scenario?

    Monday, May 16, 2011 7:10 AM
  • Hi All,

    Can you please anybody help me regarding on this.

    I have developed Silverligh4 data grid application.

    In this I want Insert the Bulk data (insert 1000 or more than that records) into Oracle Database.

    In c# ado.net or odp.net using parameterized query how to using for insert more than 1000 records into Oracle Database.

    Please help me on this.

    Advanced Thanks.

    Regards,

    Narasimha

    Wednesday, July 27, 2011 1:55 AM