Hi, I have one telerik rad grid.Using a method i am filling the grid.I have enabled paging property.I have used itemtemplate-->ImageButton for delete and edit options.I have set page size as 10.Page load time it is working properly and populating the grid.After inserting 11 th row the pagination starts and it will show in next page with one record.But when i am deleting the 11th row the grid become blank.I have used dataset to bind the records. radgrid.DataBind(); dsDataset.Dispose();. But its item.count is 0. What is the reason?
This is my code
This is my code
DataSet
dsPackage= new DataSet();
dsPackage = objSQL.ExecuteDataset(
"AL_PackageType_List_Retrieve",
objUtl.NumericEntry(Session[
"LocationId"].ToString()));
gvPackage.DataSource = dsPackage.Tables[0];
gvPackage.DataBind();
dsPackage.Dispose();
if (gvPackage.Items.Count <= 0)
{
lblMessage.Text =
"No Package Details Found...";
gvPackage.Visible =
false;
}
else
{
gvPackage.Visible =
true;
}