May 26th, 2000, 11:06 PM
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.
|
Click to See Complete Forum and Search --> : Any body here to help me! May 26th, 2000, 11:06 PM 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. Johnny101 May 26th, 2000, 11:37 PM 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 May 27th, 2000, 02:38 AM 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 2dogs May 28th, 2000, 10:17 AM 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 Thank you mr. Bob. I'll try this. Regards, Rajendra codeguru.com
Copyright Internet.com Inc., All Rights Reserved. |