public frmRoomAvailability(Transactions.frmCheckINNEW objcheckIn) { objCheckIn = objcheckIn; InitializeComponent(); getdgv(); } public void getdgv() { DataSet ds = new DataSet(); ds = DB.ExecuteQuery_SP("SelectAllVacantRoom"); try { if (ds.Tables.Count > 0) { dgvsvail.DataSource = ds.Tables[0]; Generalclass.ROOMID = Convert.ToInt32(ds.Tables[0].Rows[0]["RoomID"].ToString()); } } catch (Exception ex) { } }
dgv.Rows[index].Selected = True;
index
0
dgvsvail
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)