PC Review


Reply
Thread Tools Rate Thread

how to de-select datagrid row with currency manager?

 
 
Rich
Guest
Posts: n/a
 
      25th Feb 2004
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

 
Reply With Quote
 
 
 
 
Rich
Guest
Posts: n/a
 
      25th Feb 2004
OK. I figured this one out.

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

..Net is cool!

>-----Original Message-----
>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
>
>.
>

 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Binding Manager/Currency Manager Problem? Jim Microsoft VB .NET 1 5th Jan 2008 09:30 AM
Currency Manager Hemang Shah Microsoft ADO .NET 9 9th Apr 2007 11:15 PM
currency manager Theodore Microsoft VB .NET 5 27th Jan 2006 10:59 AM
Currency Manager =?Utf-8?B?QXJ0?= Microsoft VB .NET 1 8th Jun 2005 10:42 PM
currency manager and binding manager Agnes Microsoft VB .NET 2 19th Oct 2004 08:34 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:27 PM.