Solved

DataTable Column MappingType C#

Posted on 2009-04-14
1
641 Views
Last Modified: 2013-12-17
Hi,

I have 2 question regarding MappingType

I did a column MappingType.Hidden for every column beforehand.

1.So how can i include multiple columns other then using this...
                datatable.Columns["column1"].ColumnMapping = MappingType.Element;
                datatable.Columns["column2"].ColumnMapping = MappingType.Element;
 
2.How can I un"hide" every element?So I can access to every column again?

Thanks for the reply in advance.
0
Comment
Question by:csharp_learner
1 Comment
 
LVL 29

Accepted Solution

by:
Gautham Janardhan earned 300 total points
ID: 24136485
u can loop thru columns and set the mapping type
for(int i=0;i<datatable.Columns.Count;i++)

{

datatable.Columns[i].ColumnMapping = MappingType.Element;

}

Open in new window

0

Featured Post

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Chat Room 1 28
Problem to open Excel file 15 43
dynamic menu in asp.net c# 11 29
cs.Designer Issue 2 18
This article describes relatively difficult and non-obvious issues that are likely to arise when creating COM class in Visual Studio and deploying it by professional MSI-authoring tools. It is assumed that the reader is already familiar with the cla…
In my previous two articles we discussed Binary Serialization (http://www.experts-exchange.com/A_4362.html) and XML Serialization (http://www.experts-exchange.com/A_4425.html). In this article we will try to know more about SOAP (Simple Object Acces…
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…

758 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

24 Experts available now in Live!

Get 1:1 Help Now