UltraWebGrid在前台隐藏一列

protected void UltraWebGrid1_InitializeRow(object sender, Infragistics.WebUI.UltraWebGrid.RowEventArgs e)
{
    e.Row.Cells.FromKey("id").Style.CustomRules = "display:none;";
    e.Row.Cells.FromKey("id").Column.Header.Style.CustomRules = "display:none;";
}

你可能感兴趣的:(object)