473,387 Members | 1,536 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,387 software developers and data experts.

DataGird and convertion VS 1.0 and VS 1.1

Hello

I made small GUI test program in Visual Basic NET for SQL
communication. I need some help with these problems.

problem 1)
If I change some settings in datagrid from
properties window (e.g. background color). my datatest is
removed. I compared it with diff program and it
reorganized all source code.
problem 2)
When I open project in VS.NET 2003, it asks for
some conversion. After this conversion project is not
working any more (Datagrid shows empty results and there
are some other wornigs).

Question 1)
Is it ok to split wizard code this way or is there
another recomendet method

Question 2)
Is it possible that there is some know problem
with project's conversion between VS 1.0 and VS 1.1. Or is
it caused by my code design.
Project uses Datagrid and SQL connection (connector and
dataset). I genarated the connection with data wizard. I
splitted this generated code into two parts. An unvisible
part of the connection is in dll library, it means these
variables and there initialisation.
Public Class iceMain
Public WithEvents SqlDataAdapter1 As
System.Data.SqlClient.SqlDataAdapter
Friend WithEvents SqlSelectCommand1 As
System.Data.SqlClient.SqlCommand
Friend WithEvents SqlInsertCommand1 As
System.Data.SqlClient.SqlCommand
Friend WithEvents SqlUpdateCommand1 As
System.Data.SqlClient.SqlCommand
Friend WithEvents SqlDeleteCommand1 As
System.Data.SqlClient.SqlCommand
Friend WithEvents SqlConnection1 As
System.Data.SqlClient.SqlConnection
Public WithEvents DsUzivatele1 As CMain.DsUzivatele
--my init method contains:
Me.DsUzivatele1 = New CMain.DsUzivatele()
Me.SqlDataAdapter1 = New
System.Data.SqlClient.SqlDataAdapter()
Me.SqlDeleteCommand1 = New
System.Data.SqlClient.SqlCommand()
Me.SqlConnection1 = New
System.Data.SqlClient.SqlConnection()
Me.SqlInsertCommand1 = New
System.Data.SqlClient.SqlCommand()
Me.SqlSelectCommand1 = New
System.Data.SqlClient.SqlCommand()
Me.SqlUpdateCommand1 = New
System.Data.SqlClient.SqlCommand()
CType(Me.DsUzivatele1,
System.ComponentModel.ISupportInitialize).BeginIni t()

'DsUzivatele1
'
Me.DsUzivatele1.DataSetName = "DsUzivatele"
Me.DsUzivatele1.Locale = New
System.Globalization.CultureInfo("de-DE")
Me.DsUzivatele1.Namespace
= "http://www.tempuri.org/DsUzivatele.xsd"
'
'SqlDataAdapter1
'
Me.SqlDataAdapter1.DeleteCommand =
Me.SqlDeleteCommand1
Me.SqlDataAdapter1.InsertCommand =
Me.SqlInsertCommand1
Me.SqlDataAdapter1.SelectCommand =
Me.SqlSelectCommand1
Me.SqlDataAdapter1.TableMappings.AddRange(New
System.Data.Common.DataTableMapping() {New
System.Data.Common.DataTableMapping("Table", "uzivatele",
New System.Data.Common.DataColumnMapping() {New
System.Data.Common.DataColumnMapping("userID", "userID"),
New System.Data.Common.DataColumnMapping
("uzivatelskeJmeno", "uzivatelskeJmeno"), New
System.Data.Common.DataColumnMapping("heslo", "heslo"),
New

...

A grid control is in test application that use exported
dataset from dll.
....
Me.DataGrid1.DataMember = "uzivatele"
Me.DataGrid1.DataSource = mCman.DsUzivatele1
<======= (removed by wisual editation)
Me.DataGrid1.HeaderForeColor =
System.Drawing.SystemColors.ControlText
....

Thank you
Jul 19 '05 #1
1 2151
I am not sure what you are saying about splitting the code. Are you modifying the code in the Wizard generated code section of the form? If so then yes, it will change everytime
you even add a control much less change versions. I have upgraded a couple of projects with a datagrid from 1.0 to 1.1 with no bad effects.
Want to know more? Check out the MSDN Library at http://msdn.microsoft.com or the Microsoft Knowledge Base at http://support.microsoft.com

Scot Rose, MCSD
Microsoft Visual Basic Developer Support
Email : sc***@online.microsoft.com <Remove word online. from address>

This posting is provided “AS IS”, with no warranties, and confers no rights.


--------------------
Content-Class: urn:content-classes:message
From: "Petr Studenovsky" <pe**************@multitech.cz>
Sender: "Petr Studenovsky" <pe**************@multitech.cz>
Subject: DataGird and convertion VS 1.0 and VS 1.1
Date: Fri, 1 Aug 2003 05:52:28 -0700
Lines: 105
Message-ID: <67****************************@phx.gbl>
MIME-Version: 1.0
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
X-Newsreader: Microsoft CDO for Windows 2000
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4910.0300
Thread-Index: AcNYK8PGTSv/4gTdR6CPi0/42GP9uQ==
Newsgroups: microsoft.public.dotnet.general
Path: cpmsftngxa06.phx.gbl
Xref: cpmsftngxa06.phx.gbl microsoft.public.dotnet.general:103116
NNTP-Posting-Host: TK2MSFTNGXA08 10.40.1.160
X-Tomcat-NG: microsoft.public.dotnet.general

Hello

I made small GUI test program in Visual Basic NET for SQL
communication. I need some help with these problems.

problem 1)
If I change some settings in datagrid from
properties window (e.g. background color). my datatest is
removed. I compared it with diff program and it
reorganized all source code.
problem 2)
When I open project in VS.NET 2003, it asks for
some conversion. After this conversion project is not
working any more (Datagrid shows empty results and there
are some other wornigs).

Question 1)
Is it ok to split wizard code this way or is there
another recomendet method

Question 2)
Is it possible that there is some know problem
with project's conversion between VS 1.0 and VS 1.1. Or is
it caused by my code design.
Project uses Datagrid and SQL connection (connector and
dataset). I genarated the connection with data wizard. I
splitted this generated code into two parts. An unvisible
part of the connection is in dll library, it means these
variables and there initialisation.
Public Class iceMain
Public WithEvents SqlDataAdapter1 As
System.Data.SqlClient.SqlDataAdapter
Friend WithEvents SqlSelectCommand1 As
System.Data.SqlClient.SqlCommand
Friend WithEvents SqlInsertCommand1 As
System.Data.SqlClient.SqlCommand
Friend WithEvents SqlUpdateCommand1 As
System.Data.SqlClient.SqlCommand
Friend WithEvents SqlDeleteCommand1 As
System.Data.SqlClient.SqlCommand
Friend WithEvents SqlConnection1 As
System.Data.SqlClient.SqlConnection
Public WithEvents DsUzivatele1 As CMain.DsUzivatele
--my init method contains:
Me.DsUzivatele1 = New CMain.DsUzivatele()
Me.SqlDataAdapter1 = New
System.Data.SqlClient.SqlDataAdapter()
Me.SqlDeleteCommand1 = New
System.Data.SqlClient.SqlCommand()
Me.SqlConnection1 = New
System.Data.SqlClient.SqlConnection()
Me.SqlInsertCommand1 = New
System.Data.SqlClient.SqlCommand()
Me.SqlSelectCommand1 = New
System.Data.SqlClient.SqlCommand()
Me.SqlUpdateCommand1 = New
System.Data.SqlClient.SqlCommand()
CType(Me.DsUzivatele1,
System.ComponentModel.ISupportInitialize).BeginIn it()

'DsUzivatele1
'
Me.DsUzivatele1.DataSetName = "DsUzivatele"
Me.DsUzivatele1.Locale = New
System.Globalization.CultureInfo("de-DE")
Me.DsUzivatele1.Namespace
= "http://www.tempuri.org/DsUzivatele.xsd"
'
'SqlDataAdapter1
'
Me.SqlDataAdapter1.DeleteCommand =
Me.SqlDeleteCommand1
Me.SqlDataAdapter1.InsertCommand =
Me.SqlInsertCommand1
Me.SqlDataAdapter1.SelectCommand =
Me.SqlSelectCommand1
Me.SqlDataAdapter1.TableMappings.AddRange(New
System.Data.Common.DataTableMapping() {New
System.Data.Common.DataTableMapping("Table", "uzivatele",
New System.Data.Common.DataColumnMapping() {New
System.Data.Common.DataColumnMapping("userID", "userID"),
New System.Data.Common.DataColumnMapping
("uzivatelskeJmeno", "uzivatelskeJmeno"), New
System.Data.Common.DataColumnMapping("heslo", "heslo"),
New

...

A grid control is in test application that use exported
dataset from dll.
....
Me.DataGrid1.DataMember = "uzivatele"
Me.DataGrid1.DataSource = mCman.DsUzivatele1
<======= (removed by wisual editation)
Me.DataGrid1.HeaderForeColor =
System.Drawing.SystemColors.ControlText
....

Thank you

Jul 19 '05 #2

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

Similar topics

0
by: Konstantin Kivi | last post by:
I have problems getting character set convertion to work in 4.1.4 gamma under linux. Can sombody point me to the online recource other than standard MySQL doc so that I get more information.
0
by: Freddy | last post by:
I have 2 tables in a dataset. One of them is child to the other. In my dataset, I specify both default views to allowdelete = false My datasource table of the datagird is the master table...
6
by: Chiller | last post by:
I'm in the process of writing a class that performs functions on a Distance object. The object is created by entering details as "Distance a (5, km)" or "Distance b (3, cm)" etc. I wish to write...
1
by: Vidar | last post by:
I have a problem in dotNET XSL convertion object. (XMLTRANSFORM) It won't convert UTF-8 to ISO-8859-1 I use this stylesheet for konvertion: <?xml version="1.0" encoding="ISO-8859-1"?> <!--...
0
by: timon | last post by:
I have create a Datagird in the window form. How can I set the column name in the datagird?
4
by: juli | last post by:
Good afternoon! I have an error while trying to convert to DateTime ,here is the code and the error: ArrayList al = new ArrayList(); temp_str=Line.Split(' '); al.Add(temp_str); //...
2
by: Gaurav Gargate | last post by:
To Group, I am creating a datagrid in an ASP.NET project (C#) at the design time. I will be adding the columns to the datagird at run time. The number of columns, name of the columns, data in...
1
by: Kiran | last post by:
Hi, Does any one know how to add a button to every row of a windows form datagird. Can anyone provide me some code on this. I have searched a lot but couldn't find any. I am posting this for...
1
by: Petr Studenovsky | last post by:
Hello I made small GUI test program in Visual Basic NET for SQL communication. I need some help with these problems. problem 1) If I change some settings in datagrid from properties window...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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
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,...

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.