L
leodippolito
Hello,
I have an ArrayList bound to a DataGrid.
This ArrayList is a collection of MyObject's.
MyObject class has two properties:
(example)
MyObject.ID = 1;
MyObject.Name = "abc";
In this DataGrid I have a TableStyles object with 1 GridColumnStyles so
that the grid will show ONLY the Name (second property of MyObject).
When a user selects a row, I need to get the ID of Name selected in
that row (in other words, the primary key). It is not visible in the
grid, because I don't have a GridColumnStyles for it. Therefore I don't
know how to get it.
Any idea?
Leonardo
I have an ArrayList bound to a DataGrid.
This ArrayList is a collection of MyObject's.
MyObject class has two properties:
(example)
MyObject.ID = 1;
MyObject.Name = "abc";
In this DataGrid I have a TableStyles object with 1 GridColumnStyles so
that the grid will show ONLY the Name (second property of MyObject).
When a user selects a row, I need to get the ID of Name selected in
that row (in other words, the primary key). It is not visible in the
grid, because I don't have a GridColumnStyles for it. Therefore I don't
know how to get it.
Any idea?
Leonardo