Hi. I have a master/detail scenario (customersorders + customersordersitems).
I want to make some fields hidden in the master and in the detail tables.
In the List page / Page_DataRendering of the master table I do (and it works):
public void Page_DataRendering(ref string header) {
// Example:
//header = "your header";
foreach (string item in jc_HiddenFields(CurrentTable.Name)) { //the function returns a comma separated list of the fields to hidden for the CurrentTable.Name table
var myfield = FieldByName(item);
myfield.Visible = false;
}
}
In the Preview page / Page_DataRendering event for the detail table I have the same code, and it works for the detail fields.
Now I want in the master detail page (e.g. customersordersitemslist?showmaster=customersorders&fk_CustomerOrderID=1) to hide the master table fields also.
How to do it?