Hi,
private void BindData()
{
TaskGridView.DataSource = Session["TaskTable"];
TaskGridView.DataBind();
}
Instead of above code write the code below.
private void BindData()
{
TaskGridView.DataSource =(DataTable) Session["TaskTable"];
TaskGridView.DataBind();
}
Regards,
Raghu