GridView control didn't update or dissapeared. What gives?

written by Ryan Olshan on Wednesday, December 21 2005

This is a common issue even with the DataGrid control. PostBack is invoked and your GridView doesn't update or, in some cases, disappears. All you need to do is force the GridView to bind to its datasource by calling the DataBind() method, GridView.DataBind(), where GridView is the placeholder for the control ID of the GridView control.

R

Kick this post on .NET Kicks

Similar Posts

  1. Common DropDownList Issue
  2. O DataKeyNames, Where Art Thou?
  3. GridView Sorting

Comments

  • djurdjica on on 4.21.2006 at 2:59 AM

    djurdjica avatar

    hello


Post a comment