473,322 Members | 1,405 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.

Objects and code from datagrid disappearing!

Hello all,

This is an extremely frustrating issue. I have a datagrid that is
populated with three different custom datagridtextboxcolumns that I
inherited they all work perfectly, while the code exist! The problem
is that every now and then, when I switch between the design view and
the code view, the instantiating code vanishes. Specifically, the
instantiating code like the following:

Me.RushBoolColumn = new MyRushboolColumn
Me.Master_DataGridTextBoxColumn_1 = new Master_DatagridTextBoxColumn

....etc.

Just disppears! The entry that includes these columnstyles into my
tablestyle disappears with it. All that is left is the defining
classes, and the initial definitions:

Public RushBoolColumn as RushBoolColumn
Public Master_DataGridTextBoxColumn_1 as Master_DatagridTextBoxColumn

etc.

Naturally, I wind up with dozens of build errors, in a program that
was working perfectly before!

After painstakingly putting all of the missing code back in, the
program again runs fine. Until the next time it happens. Sometimes
this happens 2-3 times a day. Sometimes it doesn't happen at all. I
can't find a pattern, except that it seems to happen when I switch
between views and it seems to happen more often when I check the
datagrid properties window.

I am using Visual Basic 2002. I have never had these problems before,
though I have also never used a datagrid before. Can anyone help?

thank you,
Mike Cooper
Nov 22 '05 #1
0 771

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

Similar topics

9
by: F. Da Costa | last post by:
Hi, Does anybody know why IE5+ does *not* honour array objects (like a table) across a session? Example: Frame A contains a var tableVar which is set via form Frame B (on init) using...
0
by: Mike Cooper | last post by:
Hello all, This is an extremely frustrating issue. I have a datagrid that is populated with three different custom datagridtextboxcolumns that I inherited they all work perfectly, while the...
8
by: Sue | last post by:
I have a datagrid populated with 6 visible read-only labels and several hidden fields. Below the datagrid, I have a table with various textboxes, dropdowns, etc. I've managed to decypher the...
6
by: Winshent | last post by:
I have read many threads which indicate that this was a problem with version 2002. Why should i be suffering this? I am using VB.NET 2003 Standard Edition... is it still a problem with 2003? ...
7
by: Jed | last post by:
I have a web service method that returns an array of custom objects marked serializeable with fully described public properties. When I bind the results to a DataGrid I can access the properties...
2
by: nulldevice | last post by:
I've got a datagrid with some nested controls, created at design-time. The controls themselves have no databound values. After a few other operations on the page (selecting a few parameters,...
5
by: | last post by:
Trying to learn about manipulating collections of objects, and populating these objects dynamically from datasources. Could someone post a code sample that shows the following: Instantiating a...
10
by: Mark Rae | last post by:
Hi, This relates to the previous thread "Disappearing Sessions", but is a bit more generic so I thought I'd start a new thread. This one relates to the storing of objects in Session once only to...
2
by: Merk | last post by:
I'm new to .NET (using 2.0) and was wondering how to go about binding a collection of custom classes to a DataGrid. The class exposes 5 read-only String properties. I would like for each of...
0
by: JoppeG | last post by:
Hi. I have a slight problem with my database software. The thing is I have written code for a function to add a new "Tab" with a "plane" and a "DataGrid" grid for viewing database info. This is...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
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...
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: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
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: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
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...

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.