|
Highlight a DataGrid Row and Stay there -
i've been asked to create two dataGrids. one has an email list - and the other accepts whatever is selected in that email list. the grids have LastName,FirstName,Dept & email address (4-columns)
and each column is sortable.
Each datagrid Uses An OnItem Command to capture the e.item.cell(0).text etc info. when the row is clicked and it works wonderful.
what im trying to do is highlight the row Clicked, then When the user Selects a button, it takes the row contents and adds it to another grid.
the problem is - that highlighted row even goes away as soon as the OnItem Command is done because of postback, im sure.
Ultimately i'd like the user to be able to select multiple rows, then after a button click, it would sort thru the IsSelected property of the grid and do the updates to the other.
even taking that command out isnt helping.
can anyone give me a good solution as to how to do this. i know this behavior sounds very close to how a ListBox behaves, but i'm at a loss to be able to build a multiColumn ListBox that has 4 separate colums where each are sortable by headers. to me this requirement said DATAGRID to me.
any help or direction is appreciated.
thanks
rik
|