473,322 Members | 1,345 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,322 software developers and data experts.

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 1251
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***@orbitcoms.com> wrote in message news:da***@orbitcoms.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
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
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...
1
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...
2
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...
0
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...
0
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...
5
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...
2
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...
8
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....
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...

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.