private void gridViewInventario_DoubleClick(object sender, EventArgs e) { string deposito = gridViewInventario.GetRowCellValue(gridViewInventario.FocusedRowHandle, "Deposito") .ToString(); string producto = gridViewInventario.GetRowCellValue(gridViewInventario.FocusedRowHandle, "Tabaco") .ToString(); string item = string.Empty; var kardex = new Form_InventarioKardex(deposito, producto, item); kardex.Show(); }
private void gridViewInventarioDetalle_DoubleClick(object sender, EventArgs e) { GridView detailView = sender as GridView; int i = detailView.SourceRowHandle; string deposito = gridViewInventario.GetRowCellValue(i, "Deposito") .ToString(); string producto = gridViewInventario.GetRowCellValue(i, "TipoTabaco") .ToString(); GridView parcial = sender as GridView; string item = parcial .GetRowCellValue(parcial.FocusedRowHandle, "Clase") .ToString(); var kardex = new Form_InventarioKardex(deposito, producto, item); kardex.Show(); }