Highlighted
Outstanding Contributor.
Outstanding Contributor.
1032 views

Multiple rows in a datagrid

Jump to solution

Hello,

I have a datagrid with multiple lines.
Select three of these lines.
How do I read the three lines I selected?

Thanks

Alberto Ferraz

0 Likes
3 Solutions

Accepted Solutions
Highlighted
Micro Focus Expert
Micro Focus Expert

RE: Multiple rows in a datagrid

Jump to solution

You can use the SelectedItems property of the dataGrid control as it will contain all of the selected rows.

Something like:

if dg1::SelectedItems::Count > 0

   perform varying myrow as type rowTemplate thru dg1::SelectedItems

       *> do what you like with each row...

   end- perform

end-if

View solution in original post

0 Likes
Highlighted
Outstanding Contributor.
Outstanding Contributor.

RE: Multiple rows in a datagrid

Jump to solution

Thanks, you are the best...

I already try with Selecteditens property but not found the correct way.

Best regards

Alberto Ferraz

View solution in original post

0 Likes
Highlighted
Outstanding Contributor.
Outstanding Contributor.

RE: Multiple rows in a datagrid

Jump to solution

Thanks, you are the best...

I've already try the Selecteditens property but don´t find the correct way.

Best regards

Alberto Ferraz

View solution in original post

0 Likes
4 Replies
Highlighted
Micro Focus Expert
Micro Focus Expert

RE: Multiple rows in a datagrid

Jump to solution

You can use the SelectedItems property of the dataGrid control as it will contain all of the selected rows.

Something like:

if dg1::SelectedItems::Count > 0

   perform varying myrow as type rowTemplate thru dg1::SelectedItems

       *> do what you like with each row...

   end- perform

end-if

View solution in original post

0 Likes
Highlighted
Outstanding Contributor.
Outstanding Contributor.

RE: Multiple rows in a datagrid

Jump to solution

Thanks, you are the best...

I already try with Selecteditens property but not found the correct way.

Best regards

Alberto Ferraz

View solution in original post

0 Likes
Highlighted
Outstanding Contributor.
Outstanding Contributor.

RE: Multiple rows in a datagrid

Jump to solution

Thanks, you are the best...

I've already try the Selecteditens property but don´t find the correct way.

Best regards

Alberto Ferraz

View solution in original post

0 Likes
Highlighted
Outstanding Contributor.
Outstanding Contributor.

RE: Multiple rows in a datagrid

Jump to solution

Thnks, you are the best...

I've already try the Selecteditems property but not find the correct way. Now is ok.

Best regards

Alberto Ferraz

0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.