Click here to Skip to main content
15,915,160 members
Home / Discussions / C#
   

C#

 
GeneralRe: help me shut dow xp white c# cod Pin
benjymous21-Dec-04 23:38
benjymous21-Dec-04 23:38 
GeneralRe: help me shut dow xp white c# cod Pin
Judah Gabriel Himango22-Dec-04 6:43
sponsorJudah Gabriel Himango22-Dec-04 6:43 
GeneralRe: help me shut dow xp white c# cod Pin
Matt Gerrans22-Dec-04 12:48
Matt Gerrans22-Dec-04 12:48 
GeneralI tried to set labe control property visible to true Pin
Mohammed Aijaz Mohiuddin21-Dec-04 19:23
Mohammed Aijaz Mohiuddin21-Dec-04 19:23 
GeneralRe: I tried to set labe control property visible to true Pin
Skynyrd21-Dec-04 22:32
Skynyrd21-Dec-04 22:32 
GeneralRe: I tried to set labe control property visible to true Pin
Mohammed Aijaz Mohiuddin23-Dec-04 1:08
Mohammed Aijaz Mohiuddin23-Dec-04 1:08 
GeneralRe: I tried to set labe control property visible to true Pin
Skynyrd23-Dec-04 5:36
Skynyrd23-Dec-04 5:36 
GeneralGetArray and SetArray Pin
SudeepPradhan21-Dec-04 18:30
SudeepPradhan21-Dec-04 18:30 
GeneralRe: GetArray and SetArray Pin
spif200121-Dec-04 19:56
spif200121-Dec-04 19:56 
GeneralRe: GetArray and SetArray Pin
SudeepPradhan21-Dec-04 20:24
SudeepPradhan21-Dec-04 20:24 
QuestionHow to AutoFit Text in a Windows Richtextbox control? Pin
AVaka21-Dec-04 17:51
AVaka21-Dec-04 17:51 
AnswerRe: How to AutoFit Text in a Windows Richtextbox control? Pin
AVaka22-Dec-04 23:13
AVaka22-Dec-04 23:13 
GeneralBetter Iteration Pin
sreejith ss nair21-Dec-04 16:47
sreejith ss nair21-Dec-04 16:47 
GeneralRe: Better Iteration Pin
Heath Stewart22-Dec-04 6:26
protectorHeath Stewart22-Dec-04 6:26 
GeneralWeb page form controls Pin
Nosheen Iqbal21-Dec-04 16:32
Nosheen Iqbal21-Dec-04 16:32 
GeneralRe: Web page form controls Pin
Heath Stewart22-Dec-04 9:25
protectorHeath Stewart22-Dec-04 9:25 
GeneralFileSystemWatcher Pin
Rafferty Uy21-Dec-04 15:59
Rafferty Uy21-Dec-04 15:59 
GeneralRe: FileSystemWatcher Pin
Dave Kreskowiak22-Dec-04 5:47
mveDave Kreskowiak22-Dec-04 5:47 
GeneralFlash & C# Pin
mszulman21-Dec-04 9:03
sussmszulman21-Dec-04 9:03 
GeneralRe: Flash & C# Pin
Heath Stewart21-Dec-04 12:44
protectorHeath Stewart21-Dec-04 12:44 
GeneralRe: Flash & C# Pin
J4amieC21-Dec-04 22:29
J4amieC21-Dec-04 22:29 
GeneralRelation between Tables a dataset Pin
Gedrain21-Dec-04 8:57
Gedrain21-Dec-04 8:57 
GeneralRe: Relation between Tables a dataset Pin
Heath Stewart21-Dec-04 12:51
protectorHeath Stewart21-Dec-04 12:51 
Use DataTable.NewRow on your Suppliers DataTabe to create a new DataRow. Add the right data to the DataRow's columns like so:
DataRow row = dataSet1.Tables["Suppliers"].NewRow();
row["supplier_id"] = 1;
row["name"] = "Goodyear";
dataSet1.Tables["Suppliers"].Rows.Add(row);
You now already have your supplier ID from above, so repeat the process in a similar fashion to add a record to your "Products" DataTable.

Note that the DataSet is not a replacement for a database, however. If this data is data you need to store, you should keep it in a database and use that database to fill a DataSet using a DataAdapter derivative like the SqlDataAdapter (for SQL Server 2000) via DataAdapter.Fill, and update your database using the DataAdapter.Update method, which contains documentation and examples about how to configure a DataAdapter and use the method in the .NET Framework SDK that is installed with VS.NET by default, can be installed stand-alone, and is available online at http://msdn.microsoft.com/library[^].

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

Software Design Engineer
Developer Division Sustained Engineering
Microsoft

[My Articles] [My Blog]
GeneralRe: Relation between Tables a dataset Pin
Gedrain21-Dec-04 23:08
Gedrain21-Dec-04 23:08 
GeneralRe: Relation between Tables a dataset Pin
Heath Stewart22-Dec-04 6:18
protectorHeath Stewart22-Dec-04 6:18 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.