Delphi Pages Forums  

Go Back   Delphi Pages Forums > Delphi Forum > DB-Aware

Lost Password?

Reply
 
Thread Tools Display Modes
  #1  
Old 12-25-2001, 10:47 PM
murphys murphys is offline
Senior Member
 
Join Date: Aug 2001
Posts: 2,948
Default DBGrid and MultiSelect

HI

i have a dbgrid which has multiselect.
my problem is that the selected record (the one who has focus) is not always the physical current record.

is there a way to force the selectedindex to be the physical current record ?

10x
Amos
Reply With Quote
  #2  
Old 12-26-2001, 06:09 AM
MrBaseball34 MrBaseball34 is offline
Senior Member
 
Join Date: Jan 2001
Posts: 7,260
Default RE: DBGrid and MultiSelect

What do you mean, "the selected record"? You said that it
is multi-select and as such, it will not always be the
current record.

For example, I can ctrl-left-click another record to multi-
select, then unselect the orignal record. That makes the
second record that was selected the only selected record
even though the record pointer is still on the originally
selected record. How do you intend to handle this type
of situation?

Why do you need this in a multi-select grid anyway?
Reply With Quote
  #3  
Old 12-26-2001, 06:15 AM
murphys murphys is offline
Senior Member
 
Join Date: Aug 2001
Posts: 2,948
Default RE: DBGrid and MultiSelect

HI

i need to do multiselect when i want to update
few records state (a field value).

but i think selectedrows.currentselectedrow := true;
will do the work.

10x
Amos
Reply With Quote
Reply

Thread Tools
Display Modes

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

Forum Jump


All times are GMT. The time now is 12:15 AM.


Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2019, vBulletin Solutions, Inc.