Click here to Skip to main content
15,902,447 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi I wish to read in a function the values of a row with the following code

DataRow TrimChamps(DataRow row)
        {
            foreach (DataRow.columns col in row)
            {
            }
            return row;
        }

But DataRow don't have the columns property.
How to solve it without having to pass to the function the whole DataTable as a parameter?
Thanks
Bernard

What I have tried:

DataRow TrimChamps(DataRow row)
        {
            foreach (DataRow.columns col in row)
            {
            }
            return row;
        }
Posted
Updated 2-Jul-17 22:56pm

1 solution

 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900