-
November 3rd, 2014, 11:14 AM
#1
DataGridview update and Datagridview refresh
What would be the similarities and differences in DataGridview.Update() and Datagridview.Refresh() methods
What are the places to use DataGridview.Update() and Datagridview.Refresh()
I'm referring to datagridview1.update() and datagrdview1.refresh() methods calling after the data source is set , what would be the best sequence of calling above 2 methods, what is the correct way
datagridview1.DataSource = new List.......
datagridview1.Refresh();
or
datagridview1.DataSource = new List.......
datagridview1.Update();
or else when to use datagridview1.Update() or datagridview1.Refresh();
what is the underlying theory behind the Refresh and update methods calling , since it is bit confusing
-
November 4th, 2014, 02:48 AM
#2
Re: DataGridview update and Datagridview refresh
Use datagrdview1.refresh() if it is hidden by something else, but no data changes. Update causes auto-refresh
-
November 4th, 2014, 05:39 AM
#3
Re: DataGridview update and Datagridview refresh
ok, thanks for reply, i got the point but , but what mean by "if it is hidden by something else "
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|