I have come up with a solution to compare two tables when displaying one in the selector.
I defined a procedure just like the ShowUserButton to compare tables:
public bool CompareTables
{
set
{
HttpContext.Current.Session[UniqueName + "CompareTables"] = value;
if (value)
{
ux_UserResults.Visible = true;
FillResultsByCompareTables(); //add the results that belong to the user to the gridview
}
}
get
{
if (HttpContext.Current.Session[UniqueName + "CompareTables"] == null)
HttpContext.Current.Session[UniqueName + "CompareTables"] = false; //default to false
return (bool)HttpContext.Current.Session[UniqueName + "CompareTables"];
}
}
When true, it calls the procedure FillResultsByCompareTables(). Just like ShowUserButton, I call this by setting CompareTables to true:
MainSelector.CompareTables = true; // I made this to compare two tables and display the results in the selector - Briscoe 05.27.08
