Hi,
I want to add field from database to an array
like this
string[] names = { "Sachin", "Dhoni", "Yuvraj" };
I tried following code but showing error dataset contains names such as sachin,dhoni,yuvraj
for (int j = 0; j < ds.Tables[0].Rows.Count - 1; j++)
{
string[] names += { ds.Tables[0].Rows[j]["firstname"].ToString() };
}
i need array name names contains 3 names as above.
how to solve this
Regards
Baiju