private void customerInquiryToolStripMenuItem_Click(object sender, EventArgs e) { try { GetRecords gr = new GetRecords(); gr.ConnectionString = cf.ConnectionStringBuilder("LocalServer"); gr.TableName = "tblCustomer"; gr.FieldNames = "sysID,LastName,FirstName,Address,ContactNumber"; gr.Criteria = " isActive =1"; gr.ShowDialog(); if (gr.ResultOutput != null) { string CustomerName = gr.ResultOutput.Cells["LastName"].Value.ToString() + "," + gr.ResultOutput.Cells["Biagtan"].Value.ToString(); tbCustormerName.Text = CustomerName; } } catch { } }