TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
mohammed shamsheer
NA
394
143.9k
combobox items is not selected while load from gird to combo
Oct 8 2014 5:56 AM
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
Reply
Answers (
5
)
diff between working javascript framework in .net & java?
Writing a testcase to Add a new group and update an existing