View Single Post
  #5 (permalink)  
Old August 27th, 2004, 09:16 AM
mehdi62b mehdi62b is offline
Friend of Wrox
Join Date: Jul 2004
Location: Tehran, , Iran.
Posts: 623
Thanks: 0
Thanked 1 Time in 1 Post

are you sure you bind your grid in proper places?
private void Page_Load(object sender, System.EventArgs e)
   //here you shoud give datasource to your grid and bind your grid for the first Page_Load
//dont bind your grid here
private void UpdateButton_Click(object sender, System.EventArgs e)
//1-change your datasource
//2-set DataSource property of your grid with new datasource
//3-bind your datagrid
your algorithm should be something like above to assure your grid updates properly,

Reply With Quote