Group: Forum Members
Posts: 2K,
Visits: 6.6K
|
The ListView is usually for displaying data, not editing (though I think you can do it...though a grid is way better). I guessing that you dropped the BO on the form, then setup the ListPopulating property of the list view. It sounds like you used the same BO type as that dropped on the form and set the appropriate fill property. It is important to understand that the BO used by the ListView isn't the instance that you dropped on the form (necessarily). The ListView will create a new instance of the BO and call the fill method and fill the list. The BO on the form is just sitting there, empty...hence no enabled buttons.
In order to get the navigation buttons to work, you'll need to fill the instance of the BO you dropped on the form. This is typically done in the ParentLoading event, which is easy to get to...just double click on the BO in the designer. Of course, you'll need to add some controls to show the data too. Once done, the toolbar will light up.
Note that the toolbar will have no effect on the list though. So clicking on a list item won't move the current record and navigating the BO with the toolbar won't change the item selected in the list.
Hope that helps!
|