FormView not displaying PagerTemplate when only 1 item in DataSource
问题 I have a FormView control with a custom PagerTemplate with my own paging LinkButtons. All works great until the dataset that I load only contains one record/item and hides the PagerTemplate completely. I've searched online and found several answers to simply add: protected void fvAppHMDA_PreRender(object sender, EventArgs e) { if (fvAppHMDA.TopPagerRow != null) fvAppHMDA.TopPagerRow.Visible = true; } However, this is not making one bit of difference. It seems that when there is only one