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
currently i use infragistics35 10.2.20102.2040
hi, if i remove the page it works, but i
Datacolumn1.Hidden =
Truei've got the above error
--------------------------------------------------------------------------------------
the whole page
<%@ Page Title="" Language="VB" MasterPageFile="~/MasterPage.master" AutoEventWireup="false" CodeFile="frm_Zeiterfassung_Freigeben_Spez2.aspx.vb" Inherits="Arbeitszeit_frm_Zeiterfassung_Freigeben_Spez2" %>
<%@ Register src="../Controls/CustomerPagerControl.ascx" tagname="CustomerPagerControl" tagprefix="uc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<table style="width: 100%"> <tr> <td> <asp:DropDownList ID="cbofirma" runat="server"> </asp:DropDownList> </td> <td><asp:Button ID="cmdanzeigen" runat="server" Text="Daten anzeigen" /> </td> <td> </td> </tr> <tr> <td>Sortieren nach : </td> <td> <asp:DropDownList ID="ddsortieren" runat="server"> </asp:DropDownList> </td> <td> </td> </tr> <tr> <td> <asp:Label ID="lblwarnung" runat="server" Font-Bold="True" Font-Names="Tahoma" Font-Size="Medium" ForeColor="Red"></asp:Label> </td> <td> </td> <td> </td> </tr> <tr> <td colspan="3">
<asp:UpdatePanel ID="UpdatePanel1" runat="server"> <ContentTemplate> <ig:WebDataGrid ID="WebDataGrid1" runat="server" Height="500px" Width="98%" AutoGenerateColumns="false" Font-Names="Tahoma" Font-Size="7pt" > <Behaviors> <ig:Selection RowSelectType="Multiple" CellClickAction="Row" Enabled="true" /> <ig:RowSelectors RowNumbering="true" Enabled="true" /> </Behaviors> </ig:WebDataGrid> </ContentTemplate> </asp:UpdatePanel>
</td> </tr> <tr> <td> <asp:Button ID="cmdfreigabe" runat="server" Text="Markierte Stunden freigeben" CssClass="mf-submit" /> </td> <td> </td> <td> </td> </tr> </table>
</asp:Content><asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder2" Runat="Server"></asp:Content>
Hi Martin,
I can tell you a way to avoid this error. Create a css class:
<style type="text/css">
.hidden
{
display:none;
}
</style>
And then apply it to your column instead of setting Hidden = true:
Datacolumn1.CssClass = "hidden"
I would like to investigate this issue anyway so if it is possible for you to attach a sample in the support ticket that you created it would be very nice (and let me know if you get this error even when you set the css class.
Regards,
Lyuba
Developer Support Engineer
Infragistics
www.infragistics.com/support
Would you also paste me the entire aspx page?
I cannot replicate your error. Would you just for test temporary remove your custom pager, just comment this line:
<uc1:CustomerPagerControl ID="CustomerPagerControl1" runat="server" />
And let me know if you still get this error?
Would you tell me which is your Infragistics version (please give me full version number, such as 10.2.20102.1011)?