|
-
May 26th, 2000, 11:06 PM
#1
Any body here to help me!
How do we extract the data in the selected rows in a data grid? User selects multiple rows, and we need to extract the data in the selected rows. How to do this.
-
May 26th, 2000, 11:37 PM
#2
Re: Any body here to help me!
you might have to loop through each record and see if it's selected. The grid might have a selected items collection. i don't use it very often so i'm not sure about either of these methods. but they seem to work for other controls.
hope this helps,
John
John Pirkey
MCSD
http://www.ShallowWaterSystems.com
http://www.stlvbug.org
John Pirkey
MCSD (VB6)
http://www.stlvbug.org
-
May 27th, 2000, 02:38 AM
#3
Re: Any body here to help me!
But Mr.John Pirkey, I've tried this method using the Bookmarks and SelBookMarks methods. What is happening here is the data grid returning the selected records out of the visible records with in the scroll bar range and it is throwing error for those selected rows which are out side the scroll bar range(please catch my point). What to do?. Could you please suggest, if possible code also.
Regards
Rajendra
-
May 28th, 2000, 10:17 AM
#4
Re: Any body here to help me!
In general (i have only used msflexgrid) you can use as below:
dim seldata as string
seldata = msflexgrid1.clip
'the variable seldata now holds all data in the selected area.
good luck
bob
-
May 28th, 2000, 11:01 PM
#5
Re: Any body here to help me!
Thank you mr. Bob. I'll try this.
Regards,
Rajendra
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|