Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
155
Accesing SelectedItem in ListView
posted

Hi all!

I want to get the string that a user have selected in a UltraListView and I try to get it using  STRING(tablasseleccionadas:SelectedItems) but it gives me the collection not the only selected item, anybody knows how to do that?

THX in advance.

Parents
No Data
Reply
  • 469350
    Offline posted

    Hi,

    I'm not familiar with the syntax you are using here, but in C#, you would get the selected item(s) like this:


                foreach (UltraListViewItem selectedItem in this.ultraListView1.SelectedItems)
                {
                    Debug.WriteLine(selectedItem.Text);
                }

Children
No Data