locked
AutoSizeColumnsMode not appear in asp:Gridview Control RRS feed

  • Question

  • User992700523 posted

    I am using ASP .Net Grid view control and bind it on SelectedIndexChange with Datatable.

    <asp:GridView ID="CRUDGrid" runat="server" CssClass="col-md-12" ItemStyle-width="100%"></asp:GridView>
    CRUDGrid.AutoSizeColumnsMode = DataGridViewAutoSizeColumnsMode.AllCells;

    This shows error in code. How can i solve this problem.

    Thank you,

    Regards,
    Muhammad Naveed Haroon

    Saturday, December 9, 2017 7:48 AM

Answers

All replies