Hi Michael,
I don't understand your question. The code you show here only has one list. Where does the "double list" part come in?
If you bind the grid to a generic list, then the type of object in the list determines the columns in the grid. Each public property on the object will be a column and each item in the list is a row.
Oh, I see what you mean now. I don't think the grid can display this. I guess what you want here is for each cell in the grid to be another grid with it's own columns and cells, but UltraWinGrid does not have that cabability. What you will probably get if you bind the grid to this object is a single column and each cell will display the class name of the child list because the grid just calls ToString on the cell's Value.
Too bad the conversation ended. I don't think the intention is to have a grid in each cell, but to display a matrix in the grid.
I would like also to bind a list of lists to the grid, but don't know how to do it.
Any ideas?
<RolfLange> wrote in message news:16233@forums.infragistics.com... Too bad the conversation ended. I don't think the intention is to have a grid in each cell, but to display a matrix in the grid. I would like also to bind a list of lists to the grid, but don't know how to do it. Any ideas? http://forums.infragistics.com/forums/p/2385/16233.aspx#16233
Hello,
I also have a situation like this (or at least I think it is), where I want to display information as a matrix. In my database, I have a table with the following fields:
Item | Size | Colour | Cost
The idea being, that a given item can have varying costs, depending on the size and colour. In order to make it easier for the user to view/update this data, we wish to display it as a matrix - a bit like:
| Small | Medium | Large
-----------------------------------
Red | 5.00 | 6.00 | 7.00
Green | 4.50 | 5.20 | 5.90
Blue | 4.00 | 4.90 | 5.40
With some fancy coding, it is probably possible to get a standard UltraGrid to do all this for us - I'd just prefer if there was some sort of standard way to do this with Infragistics (Like a matrix control or something).
So - is there anyway of doing this without resorting to using an UltraGrid control?