Click here to Skip to main content
14,639,515 members
Home » Discussions » C#
   

C#

 
GeneralRe: Dynamically Add Columns to Existing DataTable Pin
paas29-Jul-08 3:10
Memberpaas29-Jul-08 3:10 
AnswerRe: Dynamically Add Columns to Existing DataTable [modified] Pin
Tuwing.Sabado29-Jul-08 3:07
MemberTuwing.Sabado29-Jul-08 3:07 
GeneralRe: Dynamically Add Columns to Existing DataTable Pin
MumbleB29-Jul-08 3:23
MemberMumbleB29-Jul-08 3:23 
GeneralRe: Dynamically Add Columns to Existing DataTable Pin
Tuwing.Sabado29-Jul-08 3:35
MemberTuwing.Sabado29-Jul-08 3:35 
GeneralRe: Dynamically Add Columns to Existing DataTable Pin
MumbleB29-Jul-08 9:50
MemberMumbleB29-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
MemberMumbleB29-Jul-08 3:29 
GeneralRe: Dynamically Add Columns to Existing DataTable [modified] Pin
Tuwing.Sabado29-Jul-08 3:43
MemberTuwing.Sabado29-Jul-08 3:43 
Hi,

Please add these codes after the da.Fill(dataTable);

MessageBox.Show("Column Count:" + dataTable.Columns.Count.ToString());            
MessageBox.Show("Row Count: " + dataTable.Rows.Count.ToString());


You have 4 messagebox. 2 before adding the dynamic columns and another 2 after the adding.

Let us know what are the outputs of the messagebox

modified on Tuesday, July 29, 2008 9:53 AM

GeneralRe: Dynamically Add Columns to Existing DataTable Pin
MumbleB29-Jul-08 9:53
MemberMumbleB29-Jul-08 9:53 
GeneralRe: Dynamically Add Columns to Existing DataTable Pin
MumbleB29-Jul-08 19:21
MemberMumbleB29-Jul-08 19:21 
Questionauto select, insert, update, delete ... option in winforms Pin
dream_liner_7e729-Jul-08 1:56
Memberdream_liner_7e729-Jul-08 1:56 
AnswerRe: auto select, insert, update, delete ... option in winforms Pin
Tuwing.Sabado29-Jul-08 3:16
MemberTuwing.Sabado29-Jul-08 3:16 
QuestionAxInterop.xyz.dll deployment problem Pin
Krazy Programmer29-Jul-08 1:34
MemberKrazy Programmer29-Jul-08 1:34 
AnswerRe: AxInterop.xyz.dll deployment problem Pin
paas29-Jul-08 4:17
Memberpaas29-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
MemberWaleed Eissa29-Jul-08 0:24 
AnswerRe: Is there a collection in .NET that combines the functionality of both a List and a Dictionary? Pin
Guffa29-Jul-08 0:48
MemberGuffa29-Jul-08 0:48 
AnswerRe: Is there a collection in .NET that combines the functionality of both a List and a Dictionary? Pin
Frank Horn29-Jul-08 2:17
MemberFrank Horn29-Jul-08 2:17 
AnswerRe: Is there a collection in .NET that combines the functionality of both a List and a Dictionary? Pin
Waleed Eissa29-Jul-08 2:44
MemberWaleed Eissa29-Jul-08 2:44 
GeneralRe: Is there a collection in .NET that combines the functionality of both a List and a Dictionary? Pin
J4amieC29-Jul-08 3:04
MemberJ4amieC29-Jul-08 3:04 
GeneralRe: Is there a collection in .NET that combines the functionality of both a List and a Dictionary? Pin
Waleed Eissa30-Jul-08 3:18
MemberWaleed Eissa30-Jul-08 3:18 
QuestionGet Element which is clicked next Pin
ezazazel29-Jul-08 0:01
Memberezazazel29-Jul-08 0:01 
Questionfind page rand of a site ???? Pin
mr.mohsen28-Jul-08 23:33
Membermr.mohsen28-Jul-08 23:33 
AnswerRe: find page rand of a site ???? Pin
Guffa29-Jul-08 0:53
MemberGuffa29-Jul-08 0:53 
GeneralRe: find page rand of a site ???? Pin
mr.mohsen29-Jul-08 2:16
Membermr.mohsen29-Jul-08 2:16 
QuestionRow clicking in ViewGrid in C#.NET2.0 Pin
YSridhar28-Jul-08 23:10
MemberYSridhar28-Jul-08 23:10 

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.