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
190
UltraWinGrid Data Population using objects
posted

Hi,

I am using Infragistics2.Win.UltraWinGrid.v9.2 grid to show the data using the objects as the datastore. When I am binding the data then the objects properties are shown correctly as a column but the object data is not show in the grid.

The below are the steps being followed. Can you please let me know what else I need to do to display the data properply.

ScreenShot 1 : The below screen shot shows the way I am invoking the COM component and attaching the same to the datagrid.

 

ScreenShot 2: The below screen shot shows the way the grid is populated.

 

Parents
  • 69832
    Offline posted

    The grid communicates with the BindingManager when it goes to obtain the cell values; the BindingManager returns a PropertyDescriptorsCollection which contains a PropertyDescriptor for each column, and the grid calls the GetValue method off that PropertyDescriptor. Without additional details about this I have to assume that the PropertyDescriptor.GetValue method is returning null.

    You can programmatically call the PropertyDescriptor.GetValue method yourself, and if it returns null, it would indicate that the problem is not with the UltraGrid but rather with the COM object. If you are able to attach a simple sample that demonstrates this problem, we can take a look and let your know what is going on.

Reply Children