Solved

Use Row.ItemArray to Check Column Name before accessing

Posted on 2006-11-17
6
695 Views
Last Modified: 2012-05-05
How might I use DataTable  Row   ".ItemArray" property to check a column name before I attempt

x = MyRow.Item(myColumnNameVariable)

Purpose:  I want to make sure I haven't misspelled the column name when I pass it to this statement using varColumnNameVariable.

Any guidance on this would be appreciated.

Thanks!


0
Comment
Question by:codequest
  • 4
  • 2
6 Comments
 
LVL 4

Accepted Solution

by:
satish_nagdev earned 350 total points
ID: 17976909
hi,
sorry your question is not clear to me but i think you want to get column name from datatable,
you can use dataset.Table[0].Columns[0].ColumnName.

regards,
satish.
0
 
LVL 2

Author Comment

by:codequest
ID: 17981955
Thanks for input.  That looks right (I was just guessing about ItemArray).   I'll try it and post results.
0
 
LVL 2

Author Comment

by:codequest
ID: 18070723
Still waiting to get back to this one...
0
Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

 
LVL 2

Author Comment

by:codequest
ID: 18155942
STILL working my way back to this one...
0
 
LVL 2

Author Comment

by:codequest
ID: 18209771
StILL working my way back to this one...
0
 
LVL 4

Expert Comment

by:satish_nagdev
ID: 18289651
let me know when u get back to this :-)

regards,
satish.
0

Featured Post

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

Today is the age of broadband.  More and more people are going this route determined to experience the web and it’s multitude of services as quickly and painlessly as possible. Coupled with the move to broadband, people are experiencing the web via …
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

747 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

9 Experts available now in Live!

Get 1:1 Help Now