private void DGVMasterSearch_CellClick(object sender, DataGridViewCellEventArgs e) { Clear(); if (DGVMasterSearch.CurrentCell != null && DGVMasterSearch.CurrentCell.Value != null) { if (e.RowIndex > -1) { txtPurchaseID.Text =this.DGVMasterSearch.CurrentRow.Cells["PURCHASE_ID"].Value.ToString(); txt_po_Oid.Text = this.DGVMasterSearch.CurrentRow.Cells["PURCHASE_ORDER_ID"].Value.ToString(); txtDate.Text = this.DGVMasterSearch.CurrentRow.Cells["DATE"].Value.ToString(); txtVendor_Invoice.Text = this.DGVMasterSearch.CurrentRow.Cells["VENDOR_INVOICE_NO"].Value.ToString(); cmbVendor.Text = this.DGVMasterSearch.CurrentRow.Cells["VENDOR_NAME"].Value.ToString(); } } dgvPurchaseEntry.Columns.Clear(); string[] str = {txtPurchaseID.Text,"SEARCH" }; ds= ppt.P_DS("PURCHASE_DETAILS_SEARCH_DELETE",str); this.dgvPurchaseEntry.DataSource = ds.Tables[0]; Totalgridvalues(); PanelMasterSearch.Hide(); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)