try
{
RID = id;
object[,] ParamArray = new object[,] { { "@RoomID", id } };
DataSet ds = new DataSet();
ds = DB.ExecuteQuery_SP("SelectRoomDetails", ParamArray);
if (ds.Tables.Count > 0)
{
txtroomno.Text = ds.Tables[0].Rows[0]["RoomNo"].ToString();
cmbroomcat.SelectedValue = ds.Tables[0].Rows[0]["RoomCategoryID"].ToString();
txtcapac.Text = ds.Tables[0].Rows[0]["RoomCapacity"].ToString();
txtrent.Text = ds.Tables[0].Rows[0]["PerdayRent"].ToString();
//txtstatus.Text = ds.Tables[0].Rows[0]["RoomStatus"].ToString();
txttaxperc.Text = ds.Tables[0].Rows[0]["TaxPerc"].ToString();
txttaxamnt.Text = ds.Tables[0].Rows[0]["TaxAmount"].ToString();
}
IsEdit = true;
}
catch(Exception ex){}
cmbroomcat.SelectedValue = ds.Tables[0].Rows[0]["RoomCategoryID"].ToString(); ::
cmbbroomcat.selectedValue showing null value