473,804 Members | 3,958 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Strange behaviour of Listview loaded from database

I have mentioned this issue previously but as yet have not found a solution.

In VB.Net 2003, I have 4 Listviews on a Tab.

Each listview has the data source property set to point to a database table
and the display member set to a field in that table.

The program runs fine and all the information appears in the listviews as
expected. If I deploy the application, the listviews still behave correctly.

But, when I close the IDE and reopen it, one particular listview keeps
clearing the data source property and I have to set it again. It only
happens with particular listview, the display member is intact but the data
source is cleared.

I am not sure if it is related but periodically 2 of the TABs on the TAB
control swap positions and I have to manually move them back in the
collections editore for the Tab control.

Any ideas ?

Thanks
Nov 21 '05 #1
2 1268
David,

Can you show us the part of the code where you bind the datasource of your
listview to the database.

(I don't know a datasource property from a listview therefore I ask it)

Cor
Nov 21 '05 #2
I've noticed similar behavior and always attributed it to some qwerky
bug in VS.NET. Typically I delete the control that's acting erradically
and recreate it and this usually solves the problem.

As far as the tabs swapping places, if this continues to happen I would
put some code in your form load handler to remove all tab and re-add
them in the order you want them. It may not look right in the IDE, but
it will always be right when the program is running.

Hope this helps,
Brian Swanson

"David" <da***@orbitcom s.com> wrote in message news:da***@orbi tcoms.com:
I have mentioned this issue previously but as yet have not found a
solution.

In VB.Net 2003, I have 4 Listviews on a Tab.

Each listview has the data source property set to point to a database
table
and the display member set to a field in that table.

The program runs fine and all the information appears in the listviews
as
expected. If I deploy the application, the listviews still behave
correctly.

But, when I close the IDE and reopen it, one particular listview keeps
clearing the data source property and I have to set it again. It only
happens with particular listview, the display member is intact but the
data
source is cleared.

I am not sure if it is related but periodically 2 of the TABs on the TAB
control swap positions and I have to manually move them back in the
collections editore for the Tab control.

Any ideas ?

Thanks


Nov 21 '05 #3

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

Similar topics

0
1797
by: Phil | last post by:
Hi, I don't understand this strange behaviour: I compile this code : #include <Python.h> #include"Numeric/arrayobject.h" static PyObject *
2
1441
by: Markus Franz | last post by:
Hi. Today I created a script called load.py for using at the command line written in Python 2.3. This script should load as many websites as given on the comand line and print them with a seperation string to stdout. The loading was done in parallel. (I used processes for this.) The script was started by the following command:
1
787
by: J_Max | last post by:
Hello, This might be a really easy question, but... I am developing a simple Smart Device application that uses a listview. I have a function that adds a item to the listview - code is below. I use the type listviewitem, selitem, on one form to modify the listviewitem, using a timer, every second, and use selitem1 to modify items, after they have ended the time on the timer form, from the form that the listview is located - this way I...
2
2088
by: James | last post by:
I created a .Net add-in for Microsoft Excel.When the application load, all the images that will be used in the application will be loaded. I have a few forms, and some of them contain ListView control. I used the LargeIcon view with 72x40 pixel icons. The listview has about 20 items. My problem is: Sometime the image is not displayed. The space for the image is there, but the image is not displayed. The more interesting thing is: this...
0
1432
by: theintrepidfox | last post by:
Dear Group I came accross a very annoying behaviour of Visual Studio, giving me six hours of headache till I found the solution. This post is mainly for fellow developers for reference as it took me ages reading through tons of posts till I found an answer. However, I'm also interested why Visual Studio behaves that way. If anyone has a theorie on it please let me know.
0
1123
by: Jack | last post by:
Hello all, In code, I'm updating the text property of subitems in a Listview which is in Details view. This may be a dumb question, but I can't seem to find a good way to refresh the listview to show the changes. There is no database behind the listview. It's just me programatically loading it up with items and subitems. -------------------------------------------------------------- An example of how subitems are modified is:
5
3110
by: Ian | last post by:
Hi everyone, I have found some bizarre (to me...!) behaviour of the Form_Activate function. I have a form which has a button control used to close the form and a subform with a datasheet view showing a list of jobs from the database. When the main form loses focus and the user clicks the 'Close' button, I kept receiving error 2585 (This action cannot be carried out whilst processing a form or report event). This was tracked down to...
2
1826
by: zacks | last post by:
I am developing an app in VS2005 (actually in VB.NET but this question, I believe, would apply to any .NET language) that is used to design the contents of an XML file. One of potential items that would be in this XML file is a String property that contains the code for a VBScript. I have a separate form just for editing this script that uses a single Textbox. This Textbox has the AcceptsReturn, AcceptsTab and Multiline properties all set...
8
5323
by: Dox33 | last post by:
I ran into a very strange behaviour of raw_input(). I hope somebody can tell me how to fix this. (Or is this a problem in the python source?) I will explain the problem by using 3 examples. (Sorry, long email) The first two examples are behaving normal, the thirth is strange....... I wrote the following flabbergasting code: #-------------------------------------------------------------
0
9707
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9585
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
10338
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...
1
10323
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
1
7622
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6856
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
5525
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4301
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
3823
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.