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
CS0234: The type or namespace name 'Style' does not exist in the namespace 'Infragistics.WebUI.Shared'

Error message : CS0234: The type or namespace name 'Style' does not exist in the namespace 'Infragistics.WebUI.Shared'

I'm trying to show a simple grid on the page. Nothing fancy. I've got Infragistics.WebUI.Shared in my project references
and it's visible in the GAC. I've even tried adding it to the web.config, but it does not seem to want to work.

  • 230


    Is this problem solved? 

    I have a different problem,we have migrated our application from .NET 1.1 to .NET 2.0 but we are referencing the old DLLs of Infragistics 4.3 version.

    We are using Infragistics ultrachart ,it is throwing error -"Page.RegisterRequiresPostBack can only be called on controls that implement IPostBackDataHandler"

     So I had run the "Project Upgrade Utility" ,after running this I closed my application and removed the DLLs in the aplication BIN folder.

    I build my application again ,now it is giving this error- "The type or namespace name 'BorderDetails' does not exist in the namespace 'Infragistics.WebUI.Shared".

    I have removed the DLL  'Infragistics.WebUI.Shared" and added it again ,still the above error is coming..

    Any help is really appreciable as it is urgent for us.




  • 28464


    Have you, by any chance upgraded from an older version of UltraWebGrid? Sometimes when upgrading, VS.NET keeps references to the old design time assembly and serialization of grid in design mode may break. For instance, I do not recall the grid using <Style> directly anywhere. Can you please copy/paste your current ASPX grid declaration?

    (just for reference, here is a sample ASPX reference from a UWG on a page)

     <igtbl:UltraWebGrid ID="UltraWebGrid1" runat="server" DataSourceID="AccessDataSource1"
            Height="200px" OnInitializeLayout="UltraWebGrid1_InitializeLayout"
            Width="325px" oninitializerow="UltraWebGrid1_InitializeRow">
                    <HeaderStyle Height="50px" />
                        <igtbl:UltraGridColumn BaseColumnName="ReorderLevel" DataType="System.Int16" IsBound="True"
                            Key="ReorderLevel" Type="DropDownList">
                            <Header Caption="ReorderLevel">
                                <RowLayoutColumnInfo OriginX="8" />
                                <RowLayoutColumnInfo OriginX="8" />

                        <igtbl:UltraGridColumn BaseColumnName="Discontinued" DataType="System.Boolean" IsBound="True"
                            Key="Discontinued" Type="CheckBox">
                            <Header Caption="Discontinued">
                                <RowLayoutColumnInfo OriginX="9" />
                                <RowLayoutColumnInfo OriginX="9" />
                    <AddNewRow View="NotSet" Visible="NotSet">
            <DisplayLayout BorderCollapseDefault="Separate" Name="UltraWebGrid1" RowHeightDefault="20px" CellClickActionDefault="RowSelect"
                <SelectedRowStyleDefault BackColor="LightBlue" ForeColor="Black"></SelectedRowStyleDefault>
                <FrameStyle BorderStyle="Solid" BorderWidth="1px" Font-Names="Verdana" Font-Size="8pt"
                    Height="200px" Width="325px">
                    <PagerStyle BackColor="LightGray" BorderStyle="Solid" BorderWidth="1px">
                        <BorderDetails ColorLeft="White" ColorTop="White" />
                <EditCellStyleDefault BorderStyle="None" BorderWidth="0px">
                <HeaderStyleDefault BackColor="LightGray" BorderStyle="Solid">
                    <BorderDetails ColorLeft="White" ColorTop="White" />
                    <BoxStyle BackColor="LightGray" BorderStyle="Solid" BorderWidth="1px">
                        <BorderDetails ColorLeft="White" ColorTop="White" />
                <ActivationObject BorderColor="" BorderWidth="">