Hi,
I am trying to hide the header text of a column but I cannot do it. I am using the auto create of gridview columns:
<Columns>
<telerik:GridBoundColumn DataField="Description" HeaderText="Description" />
<telerik:GridBoundColumn DataField="Quantity" HeaderText="Quantity" />
<telerik:GridBoundColumn DataField="UnitPrice" HeaderText="UnitPrice" />
</telerik:GridBoundColumn>
I would like to hide the label of Unit Price in insert mode. I managed to hide the column in insert mode using the following code:
GridEditableItem totalItem = e.Item as GridEditableItem;
TextBox totalTextBox = vatItem["UnitPrice"].Controls[0] as TextBox;
totalTextBox.Visible = false;
How can I hide the label of UnitPrice? I tried the following:
grvDetails.MasterTableView.GetColumn("Discount").EditFormHeaderTextFormat = "";
without any success....Any suggestions?
I am trying to hide the header text of a column but I cannot do it. I am using the auto create of gridview columns:
<Columns>
<telerik:GridBoundColumn DataField="Description" HeaderText="Description" />
<telerik:GridBoundColumn DataField="Quantity" HeaderText="Quantity" />
<telerik:GridBoundColumn DataField="UnitPrice" HeaderText="UnitPrice" />
</telerik:GridBoundColumn>
I would like to hide the label of Unit Price in insert mode. I managed to hide the column in insert mode using the following code:
GridEditableItem totalItem = e.Item as GridEditableItem;
TextBox totalTextBox = vatItem["UnitPrice"].Controls[0] as TextBox;
totalTextBox.Visible = false;
How can I hide the label of UnitPrice? I tried the following:
grvDetails.MasterTableView.GetColumn("Discount").EditFormHeaderTextFormat = "";
without any success....Any suggestions?