0

Hey Just wanted to ask a quick question.

i am using a MS access database. i have done my selecting and filling of the dataset. What i was wanting to know is there a way to look at the name of the Column where the data is in. I was wanting to put it in a string so i could use that data to fill in somthing. plus i also got another thing i wanted to check in the title.

so does anyone know a way to select the title of the column and put it in a sting?

it would be great help if someone did :)

Edited by cgcgames: n/a

1
Contributor
1
Reply
2
Views
8 Years
Discussion Span
Last Post by cgcgames
0

i Figured out how to do it :)

for anyone that has the same problem this is the code that can do it

TempData.Tables[0].Columns[0].ColumnName.ToString()

and if you do want to try a split it pretty easy to do

TempData.Tables[0].Columns[0].ColumnName.ToString().Split('_');

basicly do Split('Character that seprates the 2 bits of info')

hope this helps someone in the future

cgcgames

Edited by cgcgames: n/a

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.