public DataTable getSchemaData() { try { DataTable dt = new DataTable(); dt.Columns.Add("ID", typeof(string)); dt.Columns.Add("NAME", typeof(string)); dt.Columns.Add("PHONE", typeof(string)); dt.Columns.Add("CNIC", typeof(string)); dt.Columns.Add("ADDRESS", typeof(string)); dt.Columns.Add("AMOUNT_DUE", typeof(string)); DataRow dr = dt.NewRow(); iIDCounter = stock.getCustomerID(); sFiledValue = iIDCounter.ToString(); dr["ID"] = sFiledValue; dr["NAME"] = customerName.Text.Trim(); dr["PHONE"] = phoneNumber.Text.Trim(); dr["CNIC"] = cnic.Text.Trim(); dr["ADDRESS"] = address.Text.Trim(); dr["AMOUNT_DUE"] = 0; dt.Rows.InsertAt(dr, 0); return(dt); } catch (Exception ex) { logger.Error(MODULE_NAME, "getSchemaData", ex); throw ex; } }