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
920
HOWTO: Show to scroll listview to first checked item
posted

Hi

I have a WinListView control bound to a data set of employees.  When the data was entered, one or more employees were selected.  I would like to display the first employee selected when the form is displayed.

For example, I have a list of 50 employees and I select John Smith which is the 20th employee is the list.  The list only display the first 6-7 employees without scrolling down.  I would like to scroll the list to the first checked employee when the form is loaded.

I am using Infragistics Ultimate 2016.2.

Any help greatly appreciated.

Regards

James O'Doherty
Solution and Database Architect
WinSQL Solutions Ltd

Parents
  • 2575
    Verified Answer
    Offline posted

    Hello James,

    If you set the ActiveItem to the item you want to your desired item during initialization, the UltraListView should scroll to that item. This can be done like so:

                ultraListView1.ActiveItem = ultraListView1.Items[20];

    Please try that and let me know if this gives you the desired effect.

Reply Children
No Data