Click here to Skip to main content
15,905,776 members
Home / Discussions / C#
   

C#

 
GeneralRe: Cannot pass params! Any ideas? Pin
Luc Pattyn29-Jul-08 4:00
sitebuilderLuc Pattyn29-Jul-08 4:00 
GeneralRe: Cannot pass params! Any ideas? Pin
J4amieC29-Jul-08 4:27
J4amieC29-Jul-08 4:27 
GeneralRe: Cannot pass params! Any ideas? Pin
FruitBatInShades29-Jul-08 22:47
FruitBatInShades29-Jul-08 22:47 
QuestionRe: Cannot pass params! Any ideas? Pin
Luc Pattyn29-Jul-08 3:11
sitebuilderLuc Pattyn29-Jul-08 3:11 
QuestionHttp traffic from IE Pin
George_George29-Jul-08 2:31
George_George29-Jul-08 2:31 
AnswerRe: Http traffic from IE Pin
J4amieC29-Jul-08 2:45
J4amieC29-Jul-08 2:45 
GeneralRe: Http traffic from IE Pin
George_George29-Jul-08 3:15
George_George29-Jul-08 3:15 
QuestionDynamically Add Columns to Existing DataTable Pin
MumbleB29-Jul-08 2:20
MumbleB29-Jul-08 2:20 
Hi Guys. I'm trying to add a column to an existing DataTable. When running the code I don't get no error message or anything but when checking the Table the column has not been added. Any ideas why?

Below the test code.

conn.ConnectionString = @"Provider=Microsoft.Jet.OLEDB.4.0;Data Source = T:\Nasmeea\PSSZ.mdb";
conn.Open();
DataAdapter = new OleDbDataAdapter("Select * From [DivInfo]", conn);
DataTable dataTable = new DataTable("DivInfo");
DataColumn dValue = new DataColumn();
DataColumn dMember = new DataColumn();
dValue.ColumnName = txtboxColumns.Text;
dValue.DataType = Type.GetType("System.String");
dataTable.Columns.Add(dValue);
dataTable.Columns.Add(dMember);
conn.Close();
MessageBox.Show("Column Added");


Excellence is doing ordinary things extraordinarily well.

AnswerRe: Dynamically Add Columns to Existing DataTable [modified] Pin
paas29-Jul-08 3:02
paas29-Jul-08 3:02 
GeneralRe: Dynamically Add Columns to Existing DataTable Pin
MumbleB29-Jul-08 3:08
MumbleB29-Jul-08 3:08 
GeneralRe: Dynamically Add Columns to Existing DataTable Pin
paas29-Jul-08 3:10
paas29-Jul-08 3:10 
AnswerRe: Dynamically Add Columns to Existing DataTable [modified] Pin
Tuwing.Sabado29-Jul-08 3:07
Tuwing.Sabado29-Jul-08 3:07 
GeneralRe: Dynamically Add Columns to Existing DataTable Pin
MumbleB29-Jul-08 3:23
MumbleB29-Jul-08 3:23 
GeneralRe: Dynamically Add Columns to Existing DataTable Pin
Tuwing.Sabado29-Jul-08 3:35
Tuwing.Sabado29-Jul-08 3:35 
GeneralRe: Dynamically Add Columns to Existing DataTable Pin
MumbleB29-Jul-08 9:50
MumbleB29-Jul-08 9:50 
AnswerRe: Dynamically Add Columns to Existing DataTable Pin
J a a n s29-Jul-08 3:12
professionalJ a a n s29-Jul-08 3:12 
GeneralRe: Dynamically Add Columns to Existing DataTable Pin
MumbleB29-Jul-08 3:29
MumbleB29-Jul-08 3:29 
GeneralRe: Dynamically Add Columns to Existing DataTable [modified] Pin
Tuwing.Sabado29-Jul-08 3:43
Tuwing.Sabado29-Jul-08 3:43 
GeneralRe: Dynamically Add Columns to Existing DataTable Pin
MumbleB29-Jul-08 9:53
MumbleB29-Jul-08 9:53 
GeneralRe: Dynamically Add Columns to Existing DataTable Pin
MumbleB29-Jul-08 19:21
MumbleB29-Jul-08 19:21 
Questionauto select, insert, update, delete ... option in winforms Pin
dream_liner_7e729-Jul-08 1:56
dream_liner_7e729-Jul-08 1:56 
AnswerRe: auto select, insert, update, delete ... option in winforms Pin
Tuwing.Sabado29-Jul-08 3:16
Tuwing.Sabado29-Jul-08 3:16 
QuestionAxInterop.xyz.dll deployment problem Pin
Krazy Programmer29-Jul-08 1:34
Krazy Programmer29-Jul-08 1:34 
AnswerRe: AxInterop.xyz.dll deployment problem Pin
paas29-Jul-08 4:17
paas29-Jul-08 4:17 
QuestionIs there a collection in .NET that combines the functionality of both a List and a Dictionary? Pin
Waleed Eissa29-Jul-08 0:24
Waleed Eissa29-Jul-08 0:24 

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.