Click here to Skip to main content
15,919,774 members
Home / Discussions / C#
   

C#

 
AnswerRe: how to add an image into resource library? Pin
stancrm18-May-06 2:43
stancrm18-May-06 2:43 
QuestionC# and MySQL Pin
Terji17-May-06 10:23
Terji17-May-06 10:23 
AnswerRe: C# and MySQL Pin
Guffa17-May-06 12:00
Guffa17-May-06 12:00 
QuestionTableLayoutPanel format Pin
reshsilk17-May-06 10:06
reshsilk17-May-06 10:06 
QuestionThe "\" character? Pin
Nick H. Lauritsen17-May-06 10:06
Nick H. Lauritsen17-May-06 10:06 
AnswerRe: The "\" character? Pin
Joshua Quick17-May-06 10:35
Joshua Quick17-May-06 10:35 
AnswerRe: The "\" character? Pin
stancrm18-May-06 2:45
stancrm18-May-06 2:45 
QuestionHow to save my DataTable, to my HD ? Pin
Tintin9217-May-06 9:52
Tintin9217-May-06 9:52 
Hello,

How to save my DataTable, to my HD ?
If I written something like that :


// Create a DataTable.
DataTable table = new DataTable("Product");

// Create a DataColumn and set various properties.
DataColumn column = new DataColumn();
column.DataType = System.Type.GetType("System.Decimal");
column.AllowDBNull = false;
column.Caption = "Price";
column.ColumnName = "Price";
column.DefaultValue = 25;

// Add the column to the table.
table.Columns.Add(column);

// Add 10 rows and set values.
DataRow row;
for (int i = 0; i < 10; i++)
{
row = table.NewRow();
row["Price"] = i + 1;

// Be sure to add the new row to the
// DataRowCollection.
table.Rows.Add(row);
}

And now I want to save my DataTable, to my HD in the current directory with a name like "MyDataTable.mdb" ?
How I code it ?

Thanks.

Tintin92
AnswerRe: How to save my DataTable, to my HD ? Pin
coolvinx17-May-06 11:15
coolvinx17-May-06 11:15 
Questionc# button control Pin
reshsilk17-May-06 9:44
reshsilk17-May-06 9:44 
AnswerRe: c# button control Pin
User 665817-May-06 9:49
User 665817-May-06 9:49 
GeneralRe: c# button control Pin
reshsilk17-May-06 9:59
reshsilk17-May-06 9:59 
Questionwindows titlebar Pin
gonzalesman17-May-06 9:02
gonzalesman17-May-06 9:02 
AnswerRe: windows titlebar Pin
NaNg1524117-May-06 9:15
NaNg1524117-May-06 9:15 
GeneralRe: windows titlebar Pin
Office Lineman17-May-06 11:46
Office Lineman17-May-06 11:46 
AnswerRe: windows titlebar Pin
Eric Dahlvang17-May-06 9:22
Eric Dahlvang17-May-06 9:22 
AnswerRe: windows titlebar Pin
Eric Dahlvang17-May-06 9:24
Eric Dahlvang17-May-06 9:24 
GeneralRe: windows titlebar Pin
Guffa17-May-06 12:04
Guffa17-May-06 12:04 
QuestionConvert Component to Service Pin
AndyZZ17-May-06 8:45
AndyZZ17-May-06 8:45 
AnswerRe: Convert Component to Service Pin
led mike17-May-06 11:56
led mike17-May-06 11:56 
QuestionArchitecture Question / Circular Refs Pin
Scott Phelps17-May-06 8:32
Scott Phelps17-May-06 8:32 
AnswerRe: Architecture Question / Circular Refs Pin
Office Lineman17-May-06 8:50
Office Lineman17-May-06 8:50 
GeneralRe: Architecture Question / Circular Refs Pin
Scott Phelps17-May-06 9:12
Scott Phelps17-May-06 9:12 
GeneralRe: Architecture Question / Circular Refs Pin
Office Lineman17-May-06 11:55
Office Lineman17-May-06 11:55 
QuestionThe Server is not operational" when authenticating user to active directory Pin
krishna nimmalapudi17-May-06 7:31
krishna nimmalapudi17-May-06 7:31 

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.