private void CreateLocationsGrid()
{
_gLocations = new Grid();
_gLocations.ID = this.ID + "_gCheckinLabels";
_gLocations.DisplayType = GridDisplayType.Light;
_gLocations.ShowActionRow = true;
_gLocations.RowItemText = "Location";
_gLocations.Actions.ShowAdd = true;
//// Handle AddClick manually in OnLoad()
_gLocations.Actions.AddClick += AddLocation_Click;
_gLocations.GridReorder += gLocations_Reorder;
var reorderField = new ReorderField();
_gLocations.Columns.Add( reorderField );
_gLocations.ShowHeader = false;
_gLocations.DataKeyNames = new string[] { "LocationId" };
_gLocations.Columns.Add( new BoundField { DataField = "FullNamePath", HeaderText = "Name" } );
DeleteField deleteField = new DeleteField();
//// handle manually in OnLoad()
deleteField.Click += DeleteLocation_Click;
_gLocations.Columns.Add( deleteField );
Controls.Add( _gLocations );
}