Microsoft
Software
Hardware
Network
Question : Visual Studio SQL Best Practices
I am once again trying to learn Visual Studio and I am looking for sample code that will show me how to connect to a sql database, plus how to create a basic data entry form where there is header information on top and line detail in the body. Let's say I have a DSN called MyConnection, a database called MYDataBase, userid is MyUser and the password is password. In that database are two tables, one called Header and the other called Detail. Here are the fields:
Header.OrderNumber
Header.CustomerNumber
Header.CustomerName
Header.OrderDate
in the Detail table are:
Detail.OrderNumber
Detail.LineNumber
Detail.ItemNumber
Detail.ItemDescription
So what I am looking for is a sample VS 2008 project that would show me how to bring up the form, establish the connection, on the top of the screen display the order header information and in the body display the order detail information. This would be a multi-line display.
As I search for solutions I am finding conflicting methods. I am an old C programmer and now I am trying to use VS 2008 C#.
If anyone can provide a basic example for this project that would be sufficient to get me started. Once I see the concepts actually in code I can take it from there.
Answer : Visual Studio SQL Best Practices
You must put the code behind this:
DisplayOrderDataGrid.DataS
ource = myDataSet.Tables["Orders"]
.DefaultVi
ew;
//MUST after this line
DisplayOrderDataGrid.Colum
ns[0].Head
erText = "Your Text";
DisplayOrderDataGrid.Colum
ns[0].Widt
h = 500;
Random Solutions
Using ADO on Access Database 'parameter query'
Clone Windows 7 to new drive
adding a text box to a radio button list?
Visual Studio 2008 on VMWare Fusion 3 Tweaks (XP)
How to get client machine name from WCF Service
Dynamics CRM - Share activity based on team
WSS 3.0 Documents in Sharepoint
What the best easiest free learning web for VB in access for starters
ADO recordset open SQL statement. Error when table name contains an underscore. MyTable_New
add a zero to a number...