Home All Groups Group Topic Archive Search About

GridView custom control and post back issues

Author
15 Mar 2006 7:43 PM
Gopi
I created a custom control inherited from the gridview and bound it to the
sql datasource.  I made the gridview control properties visible from the
asp.net page where it is created.
Here is the code which is working fine
<ord:OrderItemView
            runat="server"
            ID="orderItems"
            AllowPaging="true"
            PageSize="10" 
            DataMember="OrderList"
            DataSourceID="orderDataSource"
            >
    </ord:OrderItemView>
and here is the code which is creating issues with post back. only the
differenece is hiding the columns

<ord:OrderItemView
            runat="server"
            ID="orderItems"
            AllowPaging="true"
            PageSize="10" 
            DataMember="OrderList"
            DataSourceID="orderDataSource"
            >
        <PartTypeField DataFormatString="{0:d}" HtmlEncode="false" />
        <ItemDescriptionField Visible="false" />
        <ItemPriceField Visible = "false" />
        <QuantityField Visible="false" />
    </ord:OrderItemView>

and the rows dont post properly. any help is highly appreciated.

Thanks
Gopi

Author
16 Mar 2006 11:05 PM
CaffieneRush@gmail.com
Where are you adding your columns? OnLoad? OnInit?
Author
16 Mar 2006 11:07 PM
CaffieneRush@gmail.com
Where are you adding your columns? OnLoad? OnInit?