Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
5549
Hidden Column not possible
posted

hi, (currently use version 10 vol 2)
i want a column (auto id ) hide from showing in the grid .
i do the following
  Dim Datacolumn1 As New BoundDataField
            Datacolumn1.DataFieldName = "L_ID"
            Datacolumn1.Key = "L_ID"
            Datacolumn1.Header.Text = "L_ID"
            Datacolumn1.Hidden = True

            WebDataGrid1.Columns.Add(Datacolumn1)

WebDataGrid1.DataSource = MyRS

WebDataGrid1.DataBind()

if i do that , i've got the following error

Die Steuerelementeauflistung kann nicht geändert werden, da das Steuerelement Codeblöcke enthält (z.B. <% ... %>).

 

how did i set a column invisible? the data (when i later select some row) i still need.
in the old ultragrid i did it with

Band.Columns(0).Hidden =

True