Solved

What DataTable my row belongs to?

Posted on 2014-11-24
2
136 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 75

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

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
asp.net mvc input file 2 32
Vb.net dynamic formulas in runtime 11 61
Name space syntax error 12 39
Host asp.net pages 5 25
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…
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…
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 user default arguments when defining functions. This method of defining functions will be contrasted with the non-default-argument of defining functions.

930 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

18 Experts available now in Live!

Get 1:1 Help Now