|
dev
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
How to access columns having same name in a datarow More optionsHi all,
I know this might look strange at first look, but i am looping thru a dataset created using two different tables from database.These two tables have some fields with the same names. Now i want to use those columns from datarow. How can i get exactly the same column i want not the othere duplicate one residing in the datarow? If you understand it pls reply me. Thanks in advance, Vish TableName.ColumnName?
Or when specify the query to fill up the dataset to specify aliases for the columns? Show quote "vish" wrote: > Hi all, > > I know this might look strange at first look, but i am looping thru a > dataset created using two different tables > from database.These two tables have some fields with the same names. > > > Now i want to use those columns from datarow. How can i get exactly > the same column i want not the othere duplicate one residing in the > datarow? > > > If you understand it pls reply me. > > > Thanks in advance, > Vish > > How your datarow contains two duplicate columns?
-- Show quoteRegards, Garik Melkonyan MCP, MCAD, MCSD .NET "MrSmersh" wrote: > TableName.ColumnName? > Or when specify the query to fill up the dataset to specify aliases for the > columns? > > > "vish" wrote: > > > Hi all, > > > > I know this might look strange at first look, but i am looping thru a > > dataset created using two different tables > > from database.These two tables have some fields with the same names. > > > > > > Now i want to use those columns from datarow. How can i get exactly > > the same column i want not the othere duplicate one residing in the > > datarow? > > > > > > If you understand it pls reply me. > > > > > > Thanks in advance, > > Vish > > > > Several people have responded to this posting, and I posted a comprehensive
reply to this in microsoft.public.dotnet.languages.vb. The OP has multi-posted it in multiple groups, but it has definitely been answered. Just FYI. Robin S. Ts'i mahnu uterna ot twan ot geifur hingts uto. --------------------------------------------------------- Show quote "Garik" <garik_ma@do not spam.yahoo.com> wrote in message news:153967AA-11E3-457D-A517-FD5E1CA7679B@microsoft.com... > How your datarow contains two duplicate columns? > > -- > Regards, > Garik Melkonyan > MCP, MCAD, MCSD .NET > > > "MrSmersh" wrote: > >> TableName.ColumnName? >> Or when specify the query to fill up the dataset to specify aliases for >> the >> columns? >> >> >> "vish" wrote: >> >> > Hi all, >> > >> > I know this might look strange at first look, but i am looping thru a >> > dataset created using two different tables >> > from database.These two tables have some fields with the same names. >> > >> > >> > Now i want to use those columns from datarow. How can i get exactly >> > the same column i want not the othere duplicate one residing in the >> > datarow? >> > >> > >> > If you understand it pls reply me. >> > >> > >> > Thanks in advance, >> > Vish >> > >> > |
|||||||||||||||||||||||