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
680
Error while setting DataSource
posted

I'm trying to set DataSource for UltraGrid using below xml. This xml is desrialized result of an object that I'm binding. Getting below error, not sure why. It works fine when I set "result" array shown in the xml instead of Parent element  "PerformWorkItemActionResponse". Could you tell what is wrong when binding this xml to ultragrid.

 <?xml version="1.0" encoding="utf-8"?>

<PerformWorkItemActionResponse xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" actionType="Assign">

  <result>

    <workItemId>1153820</workItemId>

    <fromState>Available</fromState>

    <status>SUCCESS</status>

  </result>

</PerformWorkItemActionResponse>

 

Exception: 
    at Infragistics.Win.UltraWinGrid.UltraGridBand.WireDataSource()

   at Infragistics.Win.UltraWinGrid.UltraGridBand.InitListManager(BindingManagerBase bindingManager, String dataMember, UltraGridBand[] oldBands)

   at Infragistics.Win.UltraWinGrid.UltraGridLayout.ListManagerUpdated(BindingManagerBase bindingManager)

   at Infragistics.Win.UltraWinGrid.UltraGridLayout.ListManagerUpdated()

   at Infragistics.Win.UltraWinGrid.UltraGridBase.Set_ListManager(Object newDataSource, String newDataMember)

   at Infragistics.Win.UltraWinGrid.UltraGridBase.set_DataSource(Object value)

 

I'm using Infragistics2.Win.UltraWinGrid.v7.3

Parents
No Data
Reply
  • 469350
    Verified Answer
    Offline posted

    Hi,

    What's the exception? You included the call stack here, but not the exception message itself, so I can't tell what kind of exception it is.

    Also, what is the type of the object you are setting the DataSource to?

    The WinGrid's DataSource must be an object that implements the IBindingList or IList interface. My guess is that the DataSource you are using does not.

Children
No Data