Last active
May 2, 2019 08:31
-
-
Save strepicor/a7720c3f09e8c4438aba12e0509f5d01 to your computer and use it in GitHub Desktop.
Change default search forms grid column names
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private void oTrans_adapter_BeforeAdapterMethod(object sender, BeforeAdapterMethodArgs args) | |
{ | |
switch (args.MethodName) | |
{ | |
case "GetRows": | |
{ | |
System.Collections.ArrayList myCols; | |
EpiSearchColumn col1; | |
// Paramters: Data Column Name, Column Header Text, Width, Is Result, Position | |
col1 = new EpiSearchColumn("Key1", "a", -1, true, 0); | |
EpiSearchColumn col2; | |
col2 = new EpiSearchColumn("Key2", "b", -1, true, 1); | |
EpiSearchColumn col3; | |
col3 = new EpiSearchColumn("Key3", "c", -1, true, 2); | |
EpiSearchColumn col4; | |
col4 = new EpiSearchColumn("Key5", "d", -1, true, 3); | |
EpiSearchColumn col5; | |
col5 = new EpiSearchColumn("Remarks_c", "Remarks", -1, true, 4); | |
myCols = new System.Collections.ArrayList(); | |
myCols.AddRange(new object[] { col1, col2, col3,col4, col5 }); | |
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