Home All Groups Group Topic Archive Search About

How to pass a OleDbDataColumn as a parameter?

Author
10 Nov 2005 10:14 AM
Jon S via DotNetMonster.com
Hi all,

I would like to pass an OleDbDataColumn as a parameter.  The idea is I would
need to check two column values in that particular record and then manipulate
them.  Is this the correct practice in sending across the OleDbColumn or
should I get the two values that I need and then send just the two values
across?  Currently I have the following but for some reason its not liking me
sending across the OleDbDataColumn :

//Calling statement.
drCopyAcross[dcSource.ColumnName] = UseHelpers.getNewOrder( dcSource );

//Actual method.
public long getNewOrder(OleDbDataColumn dc)
{
         //Do my manipulating.
}

Thank you.


Author
20 Nov 2005 8:18 AM
Sahil Malik [MVP]
Do you mean DataColumn?
If so, you need to pass the DataRow for the value to go across.

- Sahil Malik [MVP]
ADO.NET 2.0 book -
http://codebetter.com/blogs/sahil.malik/archive/2005/05/13/63199.aspx
----------------------------------------------------------------------------



"Jon S via DotNetMonster.com" <u2272@uwe> wrote in message
news:57259c1b39e3e@uwe...
Show quote
> Hi all,
>
> I would like to pass an OleDbDataColumn as a parameter.  The idea is I
> would
> need to check two column values in that particular record and then
> manipulate
> them.  Is this the correct practice in sending across the OleDbColumn or
> should I get the two values that I need and then send just the two values
> across?  Currently I have the following but for some reason its not liking
> me
> sending across the OleDbDataColumn :
>
> //Calling statement.
> drCopyAcross[dcSource.ColumnName] = UseHelpers.getNewOrder( dcSource );
>
> //Actual method.
> public long getNewOrder(OleDbDataColumn dc)
> {
>         //Do my manipulating.
> }
>
> Thank you.
>
> --
> Message posted via DotNetMonster.com
> http://www.dotnetmonster.com/Uwe/Forums.aspx/dotnet-ado-net/200511/1

AddThis Social Bookmark Button