What is a bether method to used populate of listview ?
Please say me a method that used in populate listview and i search in documentation.
You could pass the parameter in the Requery method of the ListView:
MyListView.Requery(myCoolParameter);
But, as I found out over time, it is better to pass the parameter in the ListPopulating event of the ListView (from docs using VB):
Private Sub ListView1_ListPopulating(ByVal e As MicroFour.StrataFrame.UI.ListPopulatingEventArgs) Handles ListView1.ListPopulating
'-- Pass the search text to the FillByLastName() method
e.Parameters(0).Value = Me.txtSearch.Text
End Sub
Then, whenever you need to refresh the ListView control, it is a simple call to its Requery method:
MyListView.Requery();
No need to remember to pass a parameter since it is handled in the event. Good stuff. A "set it and forget it" type of approach.