Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Datagrid Control > asp.net 2.0 GridView adding data row?

Reply
Thread Tools

asp.net 2.0 GridView adding data row?

 
 
rob merritt
Guest
Posts: n/a
 
      04-13-2005
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
 
Reply With Quote
 
 
 
 
Brock Allen
Guest
Posts: n/a
 
      04-13-2005
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
>




 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
GridView's selection isn't causing other GridView's to load data asexpected Rasika WIJAYARATNE ASP .Net 0 12-14-2007 12:25 AM
get data that fills gridview inside the gridview Sergio E. ASP .Net Web Controls 0 08-08-2007 01:15 PM
GridView Hierarchical View - Gridview in Gridview =?Utf-8?B?bWdvbnphbGVzMw==?= ASP .Net 1 05-09-2006 06:48 PM
Gridview with combobox whose data is dependent on field in gridview wallermj@hotmail.com ASP .Net 3 11-21-2005 05:34 PM
Adding Data To Data Base Paul Smith ASP .Net 4 08-29-2005 11:01 PM



Advertisments