Get DataColumn Value togather (as a Array)

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • neeraj

    #1

    Get DataColumn Value togather (as a Array)

    Hi Everybody

    Is any body suggest me how can I get all cell value together, from
    single column of datatable in asp.net like this
    "Datatable. row (0).ItemArray"
    This returns all column value of row 1 as an array

    For exp. Datatable has data in this format

    Column1 Column2
    101 book
    102 utensils
    103 computers
    104 furniture's
    105 electriccity

    Here when I execute this code "Datatable. row (0).ItemArray" I got
    this
    (0): 1
    (1): "utensils"

    I want to get all value of column2 like this

    (0): book
    (1): utensils
    (2): computers
    (3): furniture's
    (4): electriccity

    Please give me code or any suggestion for it

    Any kind of help very helpful for me

    thanks

Working...