473,503 Members | 12,175 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

runtime listview

18 New Member
Hi Guys..
I want to create a listview at runtime wen button is clicked.
can anyone know code for these using C#..its very urgent
Apr 1 '08 #1
3 1121
kenobewan
4,871 Recognized Expert Specialist
Usually as easy as giving it a datasource to bind to, what have you tried so far?
Apr 1 '08 #2
uday1302
18 New Member
I have inserted a textbox,button and a listview in a form . here it is like if i entered a empname or empid in textbox and press btn. values r retrived frm exisiting database- table and displayed in listview.
I want the lsit view to be created at run time??hope guys you understood..???/
Apr 1 '08 #3
Frinavale
9,735 Recognized Expert Moderator Expert
I have inserted a textbox,button and a listview in a form . here it is like if i entered a empname or empid in textbox and press btn. values r retrived frm exisiting database- table and displayed in listview.
I want the lsit view to be created at run time??hope guys you understood..???/
If you are creating a desktop application check out the System.Windows ListView class.

If you are creating a web application check out the System.Web.UI ListView class.

When ever I get stuck, I always check out the MSDN library first. It's a great resource.

-Frinny
Apr 1 '08 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

6
2605
by: Anushya | last post by:
Hi I am using Listview and inherited listview control overriding WndProc & PreProcessMessage in ListView. I need this to customize listview to display only the page the user scrolls to. Since i...
0
2208
by: keith | last post by:
In a ListView control (two columns), I added a few ListView items. ListView listview=new ListView(); listview.Parent=this; listview.View=View.Details; listview.Columns.Add...
7
6420
by: Dave Y | last post by:
I am a newbie to C# and am having trouble trying to override a ListView property method. I have created a new class derived from the Forms.Listview and I cannot figure out the syntax to override...
2
8501
by: Sanjeeva Reddy | last post by:
hai Anti Keskinen, i have used the following code MyListView->LargeImageList->ImageSize = gcnew System::Drawing::Size(100, 100); // Sets large image size to 100, 100 here i am getting error...
3
6417
by: touf | last post by:
Hi, Is it possible to change and save the width of a listview column at runtime? I mean: if the user changes the width of a column and close the application, The column will have this width the...
0
3504
by: yxq | last post by:
Hi, I write the code to change icon size in listview, but so as the Trackbar value changed, the icons will disappear, but the text is eyeable. **********************************************...
7
14950
by: BobAchgill | last post by:
I am trying to decide which of these controls to use to implement letting my user select a full row from MyList. The MyList has several columns which would be nice to sort by at run time. The...
2
1571
by: JohnH | last post by:
My Customers/Sales/Contacts management database interface is modeled as if Customers are objects, Sales are objects owned by Customer objects, etc. (I'm running Access 11) I have Listviews...
4
4479
by: Brian Gaze | last post by:
I have created a ListView control and have bound this to a datasource. Within the ItemTemplate of the ListView I have added another ListViewControl which is databound in the code behind. The idea...
0
7193
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7264
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7316
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
6975
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
5562
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
4992
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
3160
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
1495
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
371
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.