Welcome to the Xceed Community | Help
Community Search  
More Search Options

Updating just the part of datagrid bound with xml

Sort Posts: Previous Next
  •  10-10-2011, 1:43 PM Post no. 31177

    Updating just the part of datagrid bound with xml

    Hi,

    I am quite new to the xceed wpf datagrid and this problem is quite crucial for me. So please help!!!!

    My grid is bound to a xml. Whenever i update the grid, i send a message to the server and i get a new xml from the server, to which i need to bind my grid to.

    In my project about 100 rows are created on the screen, of which only 10 are visible on the screen at a time, Let's say the user is now on rows 40 -50 and makes a change on 45th row. Now, how is it possible that only 45th row gets updated and the whole screen is not refreshed.  

     

    How can i bind the grid's itemsource to just the xml node having changed value.

    Thanks

    Kunal 

  •  10-11-2011, 12:47 PM Post no. 31189 in reply to 31177

    Re: Updating just the part of datagrid bound with xml

    sharing the answer from your support email on the forums: 

    ==================

    Hi Kunal,

    I can't seem to understand what you are trying to do. 

    The way I see it, the solution would be to simply do 'nothing' when the edit is ended on a cell. 

    What I mean is this. 

    - Currently, you edit a cell. 
    - when the cell ends its edit, you send the updated value to the server. 
    - the server replies with an updated xml document that has the updated value. 
    - now, instead of "re binding" the datagrid to the new xml document, simply do nothing as  you already have the updated value which is sent back from the server and your grid is consistent with the data the server has. 

    I hope this answers your question, if not, I would need more information on how the work flow is between the grid and the server. 

    ================== 


    Best Regards,

    Michel Dahdah
    Technical Support
    Xceed Software inc.
View as RSS news feed in XML
Contact | Site Map | Reviews | Legal Terms of Use | Trademarks | Privacy Statement Copyright 2011 Xceed Software Inc.