|
dev
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
How to pass a OleDbDataColumn as a parameter?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 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 |
|||||||||||||||||||||||