Hello All,
I want to design a DataGrid similar to the one in the design picture attached with this article (Please see the pic attached).
I want the following bindings and features :-
The first column of every Item (Item1,...Item5) for (LineNo=1....LineNo=?) will get bind to "Unit" which is not a collection type or array but its just and a String type property. Similarly, the other columns also are not of collection type but just one property that are Unit (String), Status (String), UnitType (String) and Runtime (Integer).
The object, "MyObj" from which I am getting these property values is of collection type like array and has structure as follows :-
MyObj(0) contains Unit, Status, UnitType, Runtime, ItemNo=1, LineNo=1.
MyObj(1) contains Unit, Status, UnitType, Runtime, ItemNo=2, LineNo=1.
MyObj(2) contains Unit, Status, UnitType, Runtime, ItemNo=3, LineNo=1.
MyObj(3) contains Unit, Status, UnitType, Runtime, ItemNo=4, LineNo=1.
MyObj(4) contains Unit, Status, UnitType, Runtime, ItemNo=5, LineNo=1.
. .. .. .. .. .. .. .. .. .. .. .. .. .. .
. .. .. .. .. .. .. .. .. .. .. .. .. .. .
. .. .. .. .. .. .. .. .. .. .. .. .. .. .
. .. .. .. .. .. .. .. .. .. .. .. .. .. .
MyObj(?) contains Unit, Status, UnitType, Runtime, ItemNo=1, LineNo=?.
MyObj(?) contains Unit, Status, UnitType, Runtime, ItemNo=2, LineNo=?.
MyObj(?) contains Unit, Status, UnitType, Runtime, ItemNo=3, LineNo=?.
MyObj(?) contains Unit, Status, UnitType, Runtime, ItemNo=4, LineNo=?.
MyObj(?) contains Unit, Status, UnitType, Runtime, ItemNo=5, LineNo=?.
I want to know how to bind these values to the respective cells.
NOTE :- The ItemNo(Column) will always be 1 to 5 and this is fixed however the LineNo(Row) can be anything depending on the object, what it takes from the Database.
Please suggest some way to achieve this as I know its very complex but interesting too.
Kindly express your ideas and please help me accomplish this one.
Thanks in advance to all of you :)