Hide Column in DetailTable Object
The following code can be used to hide a column in a DetailTable object.
In the example, the Textbox named Metin1 on DetailTable1 is hidden if the language of the user who opens the form is English.
public void OnLoadData() { if (LogonLanguage == "English") { foreach(var c in DetailTable1.GetControls("Text1")) { c.Visible = false; }
foreach (var c in DetailTable1.Columns) { if (c.Name == "Text1") { c.Control.Visible = false; } } } }