private void btnEdit_Click(object sender, EventArgs e) { string selected = gridView1.GetFocusedRowCellValue(colStockCode).ToString(); frmStockOperation so = new frmStockOperation(stock.GetByFilter(context, s => s.StockCode == selected)); so.Show(); }