• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 298
  • Last Modified:

*500* How to select multiple rows in MSFLEXGRID

Hai there ...

I was using MSFLEX GRID to display some records form database, i can select the Multiple records also, but i want to get the values from a particular column with in the selection for example if i displayed a 100 records in grid, i select records from 10 to 15, i want to take a columns values from 10 to 15, i get only one column value. any help is appreciated

Thanks in Advance
0
maramreddy
Asked:
maramreddy
1 Solution
 
TimCotteeCommented:
Hi maramreddy,

You need to iterate through:

For example:

Dim aryValues() As String
ReDim aryValues(MSFlexgrid1.RowSel - MSFlexgrid1.Row) 'Redim for the available rows
For intRow = MSFlexgrid1.Row To MSFlexgrid1.RowSel
    aryValues(intRow - MSFlexgrid1.Row) = MSFlexgrid1.TextMatrix(intRow,2) 'Use column 2
Next

Then you have an array of values from the selected rows.

Tim Cottee
0
 
maramreddyAuthor Commented:
Thank you very much Tim ...its working and i have one more doubt, but it is not related with the MSFLEXGRID. it is related with datareport.

I want to save the generated Datareport into PDF format, in a specified folder with specified format.
i am using VB6.0 and data reports, and Acrobat 5.
I know that by selecting the printer as Acrobat distiller, and i want to save in a particular folder with particular name, without prompting the user.

Thanks in advance

0

Featured Post

Never miss a deadline with monday.com

The revolutionary project management tool is here!   Plan visually with a single glance and make sure your projects get done.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now