asp.net 2.0 GridView adding data row?

Discussion in 'ASP .Net Datagrid Control' started by rob merritt, Apr 13, 2005.

  1. rob merritt

    rob merritt Guest

    I have a 2.0 GridView

    <asp:GridView Runat="server" ID="GridView1"
    DataSourceID="AccessDataSource3" BackColor="Gainsboro"
    BorderColor="#336666" BorderWidth="3px" BorderStyle="Double"
    CellPadding="4" GridLines="Horizontal" AllowSorting="True"
    AutoGenerateEditButton="true" DataKeyNames="University"
    ForeColor="Black">
    <FooterStyle ForeColor="#333333" BackColor="White"></FooterStyle>
    <RowStyle ForeColor="#333333" BackColor="White"></RowStyle>
    <PagerStyle ForeColor="White" HorizontalAlign="Center"
    BackColor="#336666"></PagerStyle>
    <SelectedRowStyle ForeColor="White" Font-Bold="True"
    BackColor="#339966"></SelectedRowStyle>
    <HeaderStyle ForeColor="White" Font-Bold="True"
    BackColor="#336666"></HeaderStyle>
    </asp:GridView>

    I have it set as editable is there any way to set it toui
    automatically add a blank row that the user can then edit and add a
    data row
     
    rob merritt, Apr 13, 2005
    #1
    1. Advertising

  2. rob merritt

    Brock Allen Guest

    The GridView still has the same "style" as the DataGrid from 1.1. So, in
    short, no. Not that you can't do a bunch of work to make it sort of do this...


    -Brock
    DevelopMentor
    http://staff.develop.com/ballen



    > I have a 2.0 GridView
    >
    > <asp:GridView Runat="server" ID="GridView1"
    > DataSourceID="AccessDataSource3" BackColor="Gainsboro"
    > BorderColor="#336666" BorderWidth="3px" BorderStyle="Double"
    > CellPadding="4" GridLines="Horizontal" AllowSorting="True"
    > AutoGenerateEditButton="true" DataKeyNames="University"
    > ForeColor="Black">
    > <FooterStyle ForeColor="#333333" BackColor="White"></FooterStyle>
    > <RowStyle ForeColor="#333333" BackColor="White"></RowStyle>
    > <PagerStyle ForeColor="White" HorizontalAlign="Center"
    > BackColor="#336666"></PagerStyle>
    > <SelectedRowStyle ForeColor="White" Font-Bold="True"
    > BackColor="#339966"></SelectedRowStyle>
    > <HeaderStyle ForeColor="White" Font-Bold="True"
    > BackColor="#336666"></HeaderStyle>
    > </asp:GridView>
    >
    > I have it set as editable is there any way to set it toui
    > automatically add a blank row that the user can then edit and add a
    > data row
    >
     
    Brock Allen, Apr 13, 2005
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Luis Esteban Valencia

    My addnew row button is only adding one row?

    Luis Esteban Valencia, Mar 23, 2005, in forum: ASP .Net
    Replies:
    0
    Views:
    860
    Luis Esteban Valencia
    Mar 23, 2005
  2. misiek
    Replies:
    0
    Views:
    2,289
    misiek
    Feb 20, 2006
  3. H5N1
    Replies:
    0
    Views:
    2,741
  4. Replies:
    5
    Views:
    678
  5. D
    Replies:
    0
    Views:
    230
Loading...

Share This Page