how to convert DataColumn to string array
Dear friends,
How to convert DataColumn to String Array
I have a set of values in DataColumn that values should be transferred to String Array. Is there any sort way without using looping statement.
Thanks.
I think there is no other alternative than looping the table .. a similar stuff is discussed and can be used
http://dotnet.org.za/keithrull/archive/2006/01/13/38913.aspx
Hi,
If you just need to get the values in each DataColumn in a DataRow, there is an ItemArray property for DataRow class. You can go through each row and call DataRow.ItemArray property to get it.
Here is a link for more information
http://msdn2.microsoft.com/en-us/library/system.data.datarow.itemarray.aspx
HTH. If this does not answer your question, please feel free to mark the post as Not Answered and reply. Thank you!
Labels: ado, array, arrayi, convert, datacolumn, dear, friends, net, string, transferred, values
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home