/// -----------------------------------------------------------------------------
/// <summary>
/// BindData gets the affiliates from the Database and binds them to the DataGrid
/// </summary>
/// <remarks>
/// </remarks>
/// <history>
/// [cnurse] 9/17/2004 Updated to reflect design changes for Help, 508 support
/// and localisation
/// </history>
/// -----------------------------------------------------------------------------
private void BindData()
{
var objAffiliates = new AffiliateController();
//Localize the Grid
Localization.LocalizeDataGrid(ref grdAffiliates, LocalResourceFile);
grdAffiliates.DataSource = objAffiliates.GetAffiliates(VendorID);
grdAffiliates.DataBind();
cmdAdd.NavigateUrl = FormatURL("AffilId", "-1");
}