C# Tutorials and offshore development in India
    Tutorials   Resources   Forum   Communities   Interview   Jobs   Projects   Offshore Development    
Silverlight Tutorials | Mentor | Code Converter | Articles | Code Factory | Computer Jokes | Members | Peer Appraisal | IT Companies | Bookmarks | Revenue Sharing |


Prizes & Awards
My Profile



Active Members
TodayLast 7 Days more...

New Feature: Community Sites: Create your own .NET community website and start earning from Google AdSense ! It's Free !




Deleting columns from DataTable


Posted Date: 26 Aug 2006      Total Responses: 3

Posted By: Vipul Mehta       Member Level: Silver     Points: 2


Friendz,
Is there any way where in I can delete a column(s) from DataTable programatically.

Regards,
Vipul Mehta




Responses

Author: Prem Kumar.O.M.    26 Aug 2006Member Level: GoldRating:     Points: 2
Hi

You could just say

<<datatable>>.Columns.Remove("<<column name>>")

Prem



Author: selvam    27 Aug 2006Member Level: BronzeRating:     Points: 2
try with Column.Remove


Author: rajamano    29 Aug 2006Member Level: BronzeRating:     Points: 2
Alter Table Employee Drop Column Emp


Post Reply
You must Sign In to post a response.
Next : in abstract classes why we should use mustinherit keyword?
Previous : Update DataSet
Return to Discussion Forum
Post New Message
Category: .NET

Related Messages



dotNet Slackers   BizTalk Adaptors    Web Design

masks masks masks

Contact Us    Privacy Policy    Terms Of Use