public static string GetItemNameForID(string id) { DataRow[] rows = ItemTemplateTable.Select(COL_ITEMTEMPLATE_ID + "='" + id + "'"); if (rows.Length > 0) { return(Convert.ToString(rows[0][COL_ITEMTEMPLATE_NAME])); } else { return(id); } }