Steve,
This is going to work perfectly. I was brain dead eariler and was looking for the properties under the MetaTable class rather than looking at the properties of an instance of the MetaTable class.
While searching for this, I went ahead and updated my Intellisense as mentioned in a eariler post. I should have done this before anyway.
From the install files, I copied the following to: \Windows\Microsoft.NET\Framework\v2.0.50727
04/02/2008 11:12 AM 57,344 System.ComponentModel.DataAnnotations.dll
04/02/2008 11:12 AM 81,920 System.Web.Abstractions.dll
03/14/2008 07:44 PM 5,136,384 System.Web.dll
04/04/2008 01:47 PM 32,768 System.Web.DynamicData.Design.dll
04/04/2008 01:47 PM 221,184 System.Web.DynamicData.dll
04/02/2008 11:12 AM 335,872 System.Web.Extensions.Design.dll
04/04/2008 01:47 PM 1,294,336 System.Web.Extensions.dll
04/02/2008 11:12 AM 61,440 System.Web.Routing.dll
Now we can add logic similar to what is currently in the Page_Load such as:
if (table.IsReadOnly) {
GridView1.Columns.RemoveAt(0);
InsertHyperLink.Visible = false;
}
Unfortunantly, doing this for the edit link does not work.
EditHyperLink.Visible = false; // doesn't work
I'm sure there's some trick to get access to the EditHyperLink control.
HyperLink link = (HyperLink)FindControl("EditHyperLink"); // doesn't work either, returns null
I guess I need to get an ASP.Net book out and read.
Tommy