how to de-select datagrid row with currency manager?

  • Thread starter Thread starter Rich
  • Start date Start date
R

Rich

Hello,

I have a datagrid (drg1) on a form and displays 6
records. I can set the row pointer (select row) with the
currency manager(cma) as follows:

cma.Position += 1
drg1.Select(cma.Position)

But when I move to the next row, the previous row retains
the drg1.SelectionBackColor (which is different than the
default row color). In pseudocode I would like to do this:

i = cma.Position
cma.Position += 1
drg1.Select(cma.Position)
drg1.DeSelect(i) 'or turn rowcolor back to default color

how could I do this for real?

Thanks,
Rich
 
OK. I figured this one out.

drg1.UnSelect(cma.Position)
cma.Position += 1
drg1.Select(cma.Position)

..Net is cool!
 
Back
Top