469,935 Members | 1,730 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,935 developers. It's quick & easy.

Selecting Row in a DataGrid when a Cell is Selected

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
- In the 'CurrentCellChanged' event I highlight the whole row
- In the 'MouseUp' event I unhighlight all the other rows and set the

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

Nov 17 '05 #1
1 1740

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

5 posts views Thread by Axial | last post: by
2 posts views Thread by Maggie Eusebio Schock | last post: by
reply views Thread by raj | last post: by
2 posts views Thread by Joachim | last post: by
13 posts views Thread by pmcguire | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.