protected void Page_Load(object sender, EventArgs e)
{
Title = table.DisplayName;
GridDataSource.Include = table.ForeignKeyColumnsNames;
// Disable various options if the table is readonly
if (table.IsReadOnly)
{
GridView1.Columns[0].Visible = false;
InsertHyperLink.Visible = false;
GridView1.EnablePersistedSelection = false;
}
}