473,406 Members | 2,894 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,406 software developers and data experts.

Application to maintain SQL data using Visual C# 2005 Express

Hi all!

I'm a newbie to C# and .NET and I'm playing around in Visual C# 2005
Express Edition. I tried to use the wizards to create a table in SQL
2005 Express Ed. and displaying that data in a grid in a form I created
in C#. I have got almost everything correct, except I have two issues.
The first one is that I'm not able to store the data I add in my grid
to the SQL database. When I close the application and open it again,
the data is gone. I have a save button in my form that I would like to
use in order for the data to be inserted/updated in SQL. I can see that
the INSERT/UPDATE/DELETE scripts are created automatically, and the
clicked-method on my save button looks like this:
---------------------------------------------------------------------------------------------------------------------------------------
private void custBindingNavigatorSaveItem_Click(object sender,
EventArgs e)
{
this.Validate();
this.custBindingSource.EndEdit();
this.custTableAdapter.Update(this.customerDataSet. Cust);
}
---------------------------------------------------------------------------------------------------------------------------------------

So it looks like it should update the data I put in the grid, but it
doesn't.

My next problem is that I would like to have a unique identifier for
all the records in this table and I would like that to be created in
the database. I tried to create an Id-field and use the
uniqueidentifier-datatype. I set it to not allow null-values and I set
it to be a GUID (the field is even using a function called newid(), but
when I create a record, it does't create this id. Maybe it's just
because I'm unable to store the data in my SQL database....

Any ideas solving my problems are rewarded with my "Hero of the day"
award. :)

Dec 9 '05 #1
0 1081

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

Similar topics

2
by: Bootstrap Bill | last post by:
A new Google group has been formed for the purpose of discussing the new Visual Studio Express products. http://groups-beta.google.com/group/Visual-Studio-Express The products are currently in...
9
by: Graham | last post by:
I have been having some fun learning and using the new Controls and methods in .Net 2.0 which will make my life in the future easier and faster. Specifically the new databinding practises and...
0
by: Mart | last post by:
Hi, I have just written (my first) VB.net app using MS Visual Basic 2005 Express Edition Beta. It is fairly simple, it reads some configuration data from an XML file then opens a new window...
2
by: Progman | last post by:
I have Visual Studio 2005 Standard edition. Is ti the same thing as the Express edition or Standard is more?
38
by: kavsak | last post by:
Hi. Not sure that this is the right place to ask but here goes. I have an application based on access97 and VB6 which I need to upgrade. It has to handle up to 20 concurrent users on a Win2k...
21
by: cddiller | last post by:
Hi All, My office doesn's use VB all that much (mostly embedded systems development). I adapted a co-workers VB application (from VB 6.0) to suit my needs using VB 2005 Express. VB 2005...
2
by: cpchan | last post by:
Hello, Can I create a Web-based application (not a Web site) with Visual C# 2005 Express ? Or I have to use Visual Web Developer 2005 Express Edition, choose ASP.NET and then choose C# ? Are...
2
by: =?Utf-8?B?dHZpbg==?= | last post by:
Hi, I'm developing small windows application for my customer by using Microsoft Visual Basic 2005 Express Edition(free version) and i create sql database in it. my question is: 1. what...
6
by: Author | last post by:
I have VS 2005 professional. Here is the version info: Microsoft Visual Studio 2005 Version 8.0.50727.762 (SP .050727-7600) © 2005 Microsoft Corporation. All rights reserved. When I...
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: 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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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,...
0
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...
0
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...
0
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,...

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.