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
Greg McGuffey
Greg McGuffey
Strategic Support Team Member (4.8K reputation)
Group: Forum Members
Posts: 2K, Visits: 6.6K
The other part of the picture is to setup the listview appropriately. This would be a two parter...



1. Obviously you'd set the ListView to use the custom method that Bill mentioned and you'd handle the ListPopulating event of the listview to get the value from the textbox.



2. You'd then need to set the listview to load manually (rather than on form load), by setting the PopulateOnFormLoad property to Manual. Of course then you need to manually fill it. To do this you'd call .Requery() as appropriate. Likely in either the TextBox.Leave event or perhaps when the tab page is activated.



Hope that helps! BigGrin
Trent Taylor
Trent Taylor
StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)
Group: StrataFrame Developers
Posts: 6.6K, Visits: 7K
(note to forum admins: it would be nice to have a view of the post to which we are replying...thanks!)

You do...scroll down and open the last 10 posts in descending order section.

Greg McGuffey
Greg McGuffey
Strategic Support Team Member (4.8K reputation)
Group: Forum Members
Posts: 2K, Visits: 6.6K
You do...scroll down and open the last 10 posts in descending order section.




Wow, never noticed that! That's cool! w00t



Thanks for asking Bill...I've often done the quoting thing myself. The last 10 posts is much better. I also noticed that you can also open the complete topic in a new window...even better for those lonnnnng posts.
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
You do...scroll down and open the last 10 posts in descending order section.

Whoa. Blink

Thanks! w00t

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