private void gridView5_RowClick(object sender, DevExpress.XtraGrid.Views.Grid.RowClickEventArgs e) { DataRow dr = gridView5.GetFocusedDataRow(); if (dr != null) { // go show the source view PalletLocation pl = new PalletLocation(); gridSources.DataSource = pl.GetLocationForItems(Convert.ToInt32(dr["ID"])); gridView3_RowClick(null, null); } }