I seem to be using the wrong version of the code but I downloaded it quite recently from here (I think) or from codeplex. The source I have consists of a website with a GridViewAdapter.cs in the App_Code/Adapters folder. As for the version number - I don't know. The dll has a 1.0.0.0 version number. Anyhow, right at the bottom of the code, inside WritePagerSection() there is:
TableRow row = innerTable.Rows[0];
foreach (TableCell cell in row.Cells)
{
foreach (Control ctrl in cell.Controls)
{
writer.WriteLine();
ctrl.RenderControl(writer);
}
}
I can see that what the corresponding line to remove is but I can't quite see where I should insert that line to associate an ID with the div. I put it here anyway:
writer.WriteBeginTag("div");
writer.WriteAttribute("class", className);
writer.Write(HtmlTextWriter.TagRightChar);
goes to:
writer.WriteBeginTag("div");
writer.WriteAttribute("id", Extender.AdaptedControl.ClientID + "Pager");
writer.WriteAttribute("class", className);
writer.Write(HtmlTextWriter.TagRightChar);
No matter, I can't figure out how to turn my source code, written as a web site, into one which just produces a single dll, because when I build it, the dll is only 80k and my current dll is 96k. I think I must have an earlier version of the source. Thanks for your help. I am nearly there.