public string[] getName() { DataTable dt = dao.GetName(); if (dt.Rows.Count > 0) { string[] names = new string[dt.Rows.Count]; for (int i = 0; i < dt.Rows.Count; i++) { names[i] = (dt.Rows[i]["TENSACH"].ToString()); } return(names); } return(null); }