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
Resign Designs
NA
31
29.9k
How to retain form fields values when page reload?
Apr 29 2015 7:15 AM
Hi,
I have a form with few fields and datagrid.If I say something about datagrid there is a button "Add".When you click this it will open another
form with some values where I can select one of the value and click ok.Then selected value needs to come to datagrid.I have implement that using below method.
set {
DataGridViewRow row = (DataGridViewRow)dataGridView1.Rows[0].Clone();
row.Cells[0].Value = value;
row.Cells[1].Value = "Name";
dataGridView1.Rows.Add(row);
}
So it updates the datagrid.But after it updates I need to use
dataGridView1.Update();
dataGridView1.Refresh();
for show the result in datagrid.This makes my form reload and lost previously entered data.
1.How can I retain previously enter values when form reload?
2.Is there any way to update datagrid without reload?
Thanks
Reply
Answers (
1
)
Display current running project in the Listbox control
How to Convert .HTML Extension to .ASPX Extension through c#