Listview


Author
Message
Rafael
Rafael
StrataFrame Novice (52 reputation)StrataFrame Novice (52 reputation)StrataFrame Novice (52 reputation)StrataFrame Novice (52 reputation)StrataFrame Novice (52 reputation)StrataFrame Novice (52 reputation)StrataFrame Novice (52 reputation)StrataFrame Novice (52 reputation)StrataFrame Novice (52 reputation)
Group: Forum Members
Posts: 48, Visits: 216
I have two TabControl.

In second tabControl have a listview

In first tabControl have a textbox where will to be a code for populate listview, how i do for listview populate whith :

Select * from tabpedidocompraitem where code = ( is here a value of textbox Wink

Replies
Rafael
Rafael
StrataFrame Novice (52 reputation)StrataFrame Novice (52 reputation)StrataFrame Novice (52 reputation)StrataFrame Novice (52 reputation)StrataFrame Novice (52 reputation)StrataFrame Novice (52 reputation)StrataFrame Novice (52 reputation)StrataFrame Novice (52 reputation)StrataFrame Novice (52 reputation)
Group: Forum Members
Posts: 48, Visits: 216
I understand and very very thanks.

I will do in event Leave of textbox, but i have a question.

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.

If i have doubt, question in the forum.

Greg McGuffey
Greg McGuffey
Strategic Support Team Member (4.8K reputation)
Group: Forum Members
Posts: 2K, Visits: 6.6K
Rafael,



Not sure what your asking, if anything. Do you still have a question?
Bill Cunnien
Bill Cunnien
StrataFrame VIP (1.2K reputation)StrataFrame VIP (1.2K reputation)StrataFrame VIP (1.2K reputation)StrataFrame VIP (1.2K reputation)StrataFrame VIP (1.2K reputation)StrataFrame VIP (1.2K reputation)StrataFrame VIP (1.2K reputation)StrataFrame VIP (1.2K reputation)StrataFrame VIP (1.2K reputation)
Group: Forum Members
Posts: 785, Visits: 3.6K
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.

GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Threaded View
Threaded View
Rafael - 17 Years Ago
Bill Cunnien - 17 Years Ago
Bill Cunnien - 17 Years Ago
Greg McGuffey - 17 Years Ago
Trent L. Taylor - 17 Years Ago
                         [quote]You do...scroll down and open the last 10 posts in descending...
Greg McGuffey - 17 Years Ago
                         [quote]You do...scroll down and open the last 10 posts in descending...
Bill Cunnien - 17 Years Ago
Rafael - 17 Years Ago
Greg McGuffey - 17 Years Ago
Bill Cunnien - 17 Years Ago
Rafael - 17 Years Ago
             So it is now working for you?
Edhy Rijo - 17 Years Ago
     no
Rafael - 17 Years Ago
Edhy Rijo - 17 Years Ago
Rafael - 17 Years Ago
Edhy Rijo - 17 Years Ago
Bill Cunnien - 17 Years Ago

Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search