Selecting Row in a DataGrid when a Cell is Selected

O

orekinbck

Hi There

I have a datagrid whose main purpose in life is to provide a nice way
for users to make a single choice from a list. The grid is read only,
single row select and has its data source as an ArrayList.

I came up against the issue of selecting a cell and getting the whole
row to highlight, and the second issue of unhighlighting any previously
selected row. To get around these two issues I have put in a two prong
approach:
- In the 'CurrentCellChanged' event I highlight the whole row
- In the 'MouseUp' event I unhighlight all the other rows and set the
CurrentRowIndex

All is good except for one minor issue that the FUSSY acceptance
testers have raised. ... Click on the TEXT within a datagrid cell and
hold down the mouse button ... all cells in the row are highlighted
except the cell that was clicked. In the cell that was clicked, only
the text is highlighted and the back color is different. When the
mouse button is released the clicked cell highlights properly.

The FUSSY acceptance testers want the row to highlight immediately,
regardless of where in the row the user clicks.

Please help me with this one as I am at a dead end !!

Thanks In Advance
Bill
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top