PC Review


Reply
Thread Tools Rate Thread

Adding a DataColumn

 
 
William Ryan
Guest
Posts: n/a
 
      26th Aug 2003
I don't think you can...99% sure on this but I could be
wrong. You can use RemoveAt to remove a column at a
specific index, but I don't see any similar piece for
adding columns. The only ways to manipulate this that I
can think of are..
1) Create the DataTable with the column added to it
before filling it
2) Create a new dataTable and manually set it.


For the most part, neither of these are very elegant.

Is there something specific that you want to accomplish
that necessitates this or is just a general question? If
it's the first, post what you want to do and we can
probably work something out.

Cheers,

Bill


>-----Original Message-----
>When adding a datacolumn to an existing table is there a
>way to specify where the datacolumn will be added or is
>the new column always added at the end? Ideally I would
>like to place the column at the front...
>.
>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Adding a Datacolumn to MS Access file not working Sagaert Johan Microsoft C# .NET 0 22nd Oct 2008 11:16 AM
Problem adding aggregate datacolumn to datatable Trygve Lorentzen Microsoft ADO .NET 3 30th Nov 2006 09:43 PM
binding datacolumn to another datacolumn in a datagrid bpdace Microsoft C# .NET 0 23rd Nov 2005 04:59 PM
Adding ExtendedProperties to a DataColumn in a DataSet Picho Microsoft C# .NET 1 8th May 2005 09:15 AM
Adding datacolumn to filled datatable VMI Microsoft C# .NET 1 2nd Nov 2004 09:20 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:05 PM.