Hi Everybody
Is any body suggest me how can I get all cell value together(withou t
looping), 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): 101
(1): " book"
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
Is any body suggest me how can I get all cell value together(withou t
looping), 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): 101
(1): " book"
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