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
pradeep kumar
NA
94
67k
Rad Grid view in view state not working properly
Sep 25 2012 2:24 AM
I have a grid called location which is in viewstate once insert button is clicked inserting the actual value and while binding it takes previous data..!
this is my insert code
GridEditFormItem inserteditem = e.Item as GridEditFormItem;
RadComboBox ddllocation = (RadComboBox)inserteditem.FindControl("ddllocation") as RadComboBox;
TextBox txtdisplayorder = (TextBox)inserteditem.FindControl("txtdisplayorder") as TextBox;
try
{
int talkoftown_detailid = 1;
if (ViewState["LocationGrid"] != null)
{
objtotdet = (List<TalkOfTheTown_Detail>)ViewState["LocationGrid"];
talkoftown_detailid = objtotdet.Count + 1;
}
objTOTdetail.TalkOfTownDet_Id = talkoftown_detailid;
objTOTdetail.PropLocation_Id = Convert.ToInt32(ddllocation.SelectedValue);
objTOTdetail.DisplayOrder = Convert.ToInt16(txtdisplayorder.Text);
objtotdet.Add(objTOTdetail);
ViewState["LocationGrid"] = objtotdet;
this.gvlocation.DataSource = objtotdet;
this.gvlocation.DataBind();
need a immediate help..,
thanks..,
Reply
Answers (
0
)
C# not locating specified file
I have filled menustrip from database mainmenu and sub menu, on form load it is showing main menu and sub menu but i want on click of submenu to open form.