Highlighting entire row [DataGrid]

  • Thread starter Thread starter P
  • Start date Start date
P

P

Hi.
I have a question that I hope someone out there can help me with. Im using
a normal Compact Framework dataGrid. I have hidden the RowsHeader.
The thing I want to acchieve is I want the full row to be selected. What i
mean is turning blue (highlighted) instead of just the current cell. Is
there a way to acchieve this. Im not seeing any property to set this. Has
anyone solved this before. Please advice. Using refelction today to retrieve
the scrollbars so perhaps via reflection there is some way to acchieve this?

Just curious.

Best regards

<P>
 
Just .selectedrow(.currentrowindex)
U may manually add it, or override the click event. Your choice.
 
On the CurrentCellChanged event you can add

myGrid.Select(myGrid.CurrentRowIndex)
 
A problem is that if a previous row is highlighted and then I use this code
then both become highlighted.
I only want the rowindex im saying to be selected should be blue. The rest
regarding of previous selections should
change back to white. [default unselected color]
Is there something im missing?

<P>
 

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

Back
Top