473,671 Members | 2,588 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Listview / databinding

In the case of a listView, how would the lines below have to be altered?

Thanks,
Paddy

private void MainForm_Load(o bject sender, System.EventArg s e)
{
City [ ] cityChoices = {new City("Cardiff", "Wales"), new
City("Farnborou gh","UK")};
listBox1.DataSo urce = cityChoices;
}


Nov 16 '05 #1
0 8922

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
1399
by: Bom | last post by:
Hi, I like to bind a collection to a listview-control. So the listview-control must behave like a datagrid. Is there somebody who has some code (C#) to do that or to extends the listview-control? Thanks, Bom
0
3032
by: suz | last post by:
Hey, I have a collection with custom objects. That collection is bounded to a listview (I used the article of Lhotka). The listview is also sortable. I have also textboxes bound to the same collection. When SelectedIndexChanged fires on the listview, I have to set the position of the currencymanager so the textboxes
1
1417
by: MrNobody | last post by:
I have a question about how ListView works. I have a data structure of several hundred records which I have used to fill up a ListView. Now, I figured the ListView would take references to my data, but instead it looks like it actually copies my data. I am assuming this, because when I alter data in my original data structure, the data on the ListView does not change, it retains the old data. Two concerns of mine are: Isn't this...
1
1501
by: TheMadHatter | last post by:
Yello, I am trying to creat an alarm list that updates, say, every .5sec. Basicaly it will be a fifo list. Which of the two (datagrid, or listview) would be best up for the chalenge? I havent got a clue as to what the "norm" is for solving this "problem". Thanks in advance.
3
3792
by: alan | last post by:
What I would like to do is like that, a ListView data binding with a dataset which list all records of a table( for example the table list all the information of a student student_id, name, tel....etc). Besides, there are some textbox will display the student information when I click on one of the record on the ListView so that I can update the records in the textbox. I can do the data binding for the ListView and the dataset, butI don't...
3
2220
by: amber | last post by:
I have a listview (lstvwAmend) (containing 2 columns) that is populated by a filtered dataview (dvRPA) that is based on a dataset (dsRPAmend1) pulling data from a SQL Server database This dataview will contain 0-10 records. The dataview is displaying field 1 & field 2 from my dataview When a user clicks on one of the items in the listview, I want to set the value of a textbox on my form to equal field 3 from the same row in my dataview I...
0
1165
by: Roshawn | last post by:
Hi, Working with the new ListView control seems pretty straightforward. For some reason, using ASP.NET's databinding syntax (i.e. <%# DataHere %>) in the control's layouttemplate doesn't work. Is there any way of making it work? If not, is it possible to create a derived control that enables this functionality? Thanks, Roshawn
4
4504
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 is that when clicking on the "Show details" button the ListView for the appropriate row binds in the codebehind and displays the detail data for the selected row. I did something similar with a gridview control previously, but want to be able to...
2
2141
by: John | last post by:
I'm calling the Webmethod from JS and at the end of the function I would like to do a a ListViewBillable.DataBind() in the Webmethod, calling a postback from JS is not rendering the correct results. How would I make a Reference to it as an Object to call the DataBind in the Webmethod VB code? Thanks John
3
1826
by: mesut | last post by:
Hi colleagues, I hope someone have experience with these databinding techniques in aspx... and can explain me the reason? I've got a listview and I would like to fix these #3 problems just to learn how to do it... can someone help me what is wrong in my code? I won't get squeezed line or whatever.. so the syntax looks correct.
0
8403
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8930
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8828
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
7446
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5704
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4417
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2819
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 we have to send another system
2
2062
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1816
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 can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.