views:

310

answers:

2

how to get a column of recordset in an arraylist ?? using vb.net .. please help me out ..

A: 

Hi Kevin,

Please refer to the MSDN documentation

Hope this helps,

hadi teo

hadi teo
Oops ! so why I came out here ? coz I depends on you :( .. anyways sorry if you mind ..
kevn
A: 

Something like:

Public Function DatasetColumnToArrayList(ds as dataset, columnName as string) As ArrayList  

dim result as new arrayList
for each rw as datarow in ds.tables(0).rows
  result.add(rw(columnName))
next
return result

end function
tbone