回复
private string [] Test(DataTable dt)
{
if (dt.Equals(null))
{
return null;
}
string [] strCon = new string[dt.Rows.Count];
for (int i = 0; i < dt.Rows.Count; i++)
{
strCon[i] = dt.Columns[i].ToString();
}
return strCon;
}
[此贴子已经被作者于2007-7-9 13:56:02编辑过]