Solved

What DataTable my row belongs to?

Posted on 2014-11-24
2
131 Views
Last Modified: 2014-11-24
Experts, I have a form that does some math on values in a DataRow. I want to use this form for many situations. I would like to pass the DataRow to the form and then check the DataTables so see who the row belongs to. This will tell me how to proceed. I have tried...

If DataSet.DataTable.Rows.Contains(myRow) then

But this fails. Could someone show me how to do this?
0
Comment
Question by:Basicfarmer
2 Comments
 
LVL 74

Accepted Solution

by:
käµfm³d   👽 earned 500 total points
ID: 40463236
You should be able to inspect the row's Table property for this information.
0
 

Author Closing Comment

by:Basicfarmer
ID: 40463251
Awesome Thanks...
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

More often than not, we developers are confronted with a need: a need to make some kind of magic happen via code. Whether it is for a client, for the boss, or for our own personal projects, the need must be satisfied. Most of the time, the Framework…
Wouldn’t it be nice if you could test whether an element is contained in an array by using a Contains method just like the one available on List objects? Wouldn’t it be good if you could write code like this? (CODE) In .NET 3.5, this is possible…
The goal of the video will be to teach the user the concept of local variables and scope. An example of a locally defined variable will be given as well as an explanation of what scope is in C++. The local variable and concept of scope will be relat…
The viewer will learn how to pass data into a function in C++. This is one step further in using functions. Instead of only printing text onto the console, the function will be able to perform calculations with argumentents given by the user.

759 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

20 Experts available now in Live!

Get 1:1 Help Now