Solved

Use Row.ItemArray to Check Column Name before accessing

Posted on 2006-11-17
6
704 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
Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done 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

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
What .NET URL re-routing tool did I use? 2 53
Gridview selected row 9 43
Output Caching in IIS 2 28
RLDC Reporting in Visual studio 11 13
Sometimes in DotNetNuke module development you want to swap controls within the same module definition.  In doing this DNN (somewhat annoyingly) swaps the Skin and Container definitions to the default admin selections.  To get around this you need t…
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
This is used to tweak the memory usage for your computer, it is used for servers more so than workstations but just be careful editing registry settings as it may cause irreversible results. I hold no responsibility for anything you do to the regist…
In this video I am going to show you how to back up and restore Office 365 mailboxes using CodeTwo Backup for Office 365. Learn more about the tool used in this video here: http://www.codetwo.com/backup-for-office-365/ (http://www.codetwo.com/ba…

815 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

8 Experts available now in Live!

Get 1:1 Help Now