" Live as if you were to die tomorrow. Learn as if you were to live forever.. "
- Mahatma Gandhi
Here is an easy way to convert a column of datatable to a 1 -dimensional array without for loop.
[C# Code Starts]
string arrEmpName; DataRow rows = dtEmployees.Select();
arrEmpName = Array.ConvertAll(rows, row => row["EmpName"].ToString());
[C# Code Ends]
Mail (will not be published) (required)
Enter Captcha Code *
× 8 = sixty four
Burn Ignorance is a knowledge initiative by Mindfire Solutions
Subscribe to our mailing list to get the updates to your email inbox...