Hi,
I have a radgrid with 4 columns 2 of the columns are part of a key. My problem is I don't want these columns to show but I still need access to their contents.
Setting the visible property to false doesnt show the column but I the cell value is nothing
Setting the display works but now when I add a new record or in edit mode the fields are editable which I don't want because they are a part of the key.
So how can:
1. Make the column not show
2. Make the columns contents accessible with codebehind
3. Make the column not editable during a batch edit
4. Make the column not display an editbox while doing an Add New
I have tried just about every combination, even with GridColumVisibleMode.AlwaysHidden
This is the Column I want to hide, but have access to but not show in edit mode or show when I do Add New.
Please, thank you.
I have a radgrid with 4 columns 2 of the columns are part of a key. My problem is I don't want these columns to show but I still need access to their contents.
Setting the visible property to false doesnt show the column but I the cell value is nothing
Setting the display works but now when I add a new record or in edit mode the fields are editable which I don't want because they are a part of the key.
So how can:
1. Make the column not show
2. Make the columns contents accessible with codebehind
3. Make the column not editable during a batch edit
4. Make the column not display an editbox while doing an Add New
I have tried just about every combination, even with GridColumVisibleMode.AlwaysHidden
This is the Column I want to hide, but have access to but not show in edit mode or show when I do Add New.
Dim boundColumn As GridBoundColumn
boundColumn = New GridBoundColumn()
dgCompNonGrid.MasterTableView.Columns.Add(boundColumn)
boundColumn.DataField = "ippComponentID"
boundColumn.UniqueName = "dgippComponentID"
'boundColumn.Display = False
boundColumn.HeaderText = ""
boundColumn.ItemStyle.Font.Size = 8
boundColumn.ItemStyle.HorizontalAlign = HorizontalAlign.Left
boundColumn.ReadOnly = True
boundColumn.Visible = False
'boundColumn.InsertVisiblityMode = GridColumnVisibilityMode.AlwaysHidden
Please, thank you.