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.
So the grid is showing the columns but no rows? Or are the rows showing up with empty cells?
How many rows are there in your data source?
Have you tried binding the same object to the Microsoft DataGridView? That would, at least, tell us if this is a problem on the DataSource or in the grid.
Please have a look at the below screenshot. There in as you can see in the Immediate window I have displayed the Name, Type and the value of the columns by using PropertyDescriptor. I am able to see the value here in immediate window but I can't see the data in the DataGrid.
Any Idea?
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.