Skip to content

Instantly share code, notes, and snippets.

@strepicor
Last active July 17, 2017 07:29
Show Gist options
  • Save strepicor/9a2933bd257febdfb02ee9bdfc347df4 to your computer and use it in GitHub Desktop.
Save strepicor/9a2933bd257febdfb02ee9bdfc347df4 to your computer and use it in GitHub Desktop.
Filter Search Window Result Columns
private void oTrans_adapter_BeforeAdapterMethod(object sender, BeforeAdapterMethodArgs args)
{
switch (args.MethodName)
{
case "GetRows": //"GetList"
System.Collections.ArrayList myCols;
EpiSearchColumn col0;
EpiSearchColumn col1;
// Paramters: Data Column Name, Column Header Text, Width, Is Result, Position
col0 = new EpiSearchColumn("ActualColumnName1", "ColumnNameToDisplay1", -1, true, 0);
col1 = new EpiSearchColumn("ActualColumnName2", "ColumnNameToDisplay2", -1, true, 1);
myCols = new System.Collections.ArrayList();
myCols.AddRange(new object[] { col0, col1 });
for (int i = 0; i < myCols.Count; i++)
{
oTrans_adapter.SearchForm.SetEpiSearchColumn((EpiSearchColumn)myCols[i], true);
}
break;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment