I found the bug in generated code that hides the first column with Select link visible.
The current code in
LoadGrid function hides the first column if no results were returned. The setting is stored in ViewState and is not reset to visible if the new search retturns rows back.
The code should be fixed by adding extra lin below
if (!coll.Query.Load())
{
// Force it to show headers but disable "Select" coll.AddNew();
this.gvBrowse.Columns[0].Visible =
false;
this.lblRecords.Text =
"0 Records Found";
}
else {
this.gvBrowse.Columns[0].Visible = true;//please fix in template
// code omitted}
Michael Freidgeim
Blog:
http://geekswithblogs.net/mnf/