Skip to main content

Multiple rows in a datagrid

  • June 27, 2016
  • 4 replies
  • 0 views

Alberto Ferraz

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

4 replies

Chris Glazier
Forum|alt.badge.img+2

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

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


Alberto Ferraz
  • Author
  • Participating Frequently
  • June 28, 2016

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

Thanks, you are the best...

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

Best regards

Alberto Ferraz


Alberto Ferraz
  • Author
  • Participating Frequently
  • June 28, 2016

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

Thanks, you are the best...

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

Best regards

Alberto Ferraz


Alberto Ferraz
  • Author
  • Participating Frequently
  • June 28, 2016

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

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