473,397 Members | 1,972 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,397 software developers and data experts.

Gridview question - Just curious

I worked on a fairly large web project about 2 years ago but that was in Dot
Net 1.1. I have no web experience in Dot Net 2.0 and Visual Studio 2005.

I was trying a basic web exercise in VS2005. Create a web project and drag
a table from the server explorer to the designer, thus automatically creating
an editing grid.

What has me confused in this: I can find no built-in provision for ADDING
rows. I cannot find anything related in the events and I cannot find any
discussion in the Help. Even more confusing, there is no Enable Add option
in the GridView properties (unlike Winform's DataGridView).

Am I missing something? (Admittedly, in my old project we rarely edited in
the grids and usually used popups and postbacks for all adding/editing.)
Nov 12 '07 #1
1 877
Both GridView in 2.0 and DataGrid in 1.1 are databound controls. They get
their row collection from datasources. You add a row to the datasource,
rebind the grid and it will show the row.

--
Eliyahu Goldin,
Software Developer
Microsoft MVP [ASP.NET]
http://msmvps.com/blogs/egoldin
http://usableasp.net
"B. Chernick" <BC*******@discussions.microsoft.comwrote in message
news:4B**********************************@microsof t.com...
>I worked on a fairly large web project about 2 years ago but that was in
Dot
Net 1.1. I have no web experience in Dot Net 2.0 and Visual Studio 2005.

I was trying a basic web exercise in VS2005. Create a web project and
drag
a table from the server explorer to the designer, thus automatically
creating
an editing grid.

What has me confused in this: I can find no built-in provision for ADDING
rows. I cannot find anything related in the events and I cannot find any
discussion in the Help. Even more confusing, there is no Enable Add
option
in the GridView properties (unlike Winform's DataGridView).

Am I missing something? (Admittedly, in my old project we rarely edited
in
the grids and usually used popups and postbacks for all adding/editing.)


Nov 12 '07 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: NateDawg | last post by:
I'm reposting this. I'm kinda in a bind untill i get this figured out, so if anyone has some input it would sure help me out. Ok, I’ve noticed a few gridview problems floating around the forum....
7
by: | last post by:
Hello, Does anyone have an idea on how I can filter the data in the gridview control that was returned by an sql query? I have a gridview that works fine when I populate it with data. Now I...
4
by: Jim Katz | last post by:
I have an application that updates a strongly typed data set at run time. I'd like to dynamically create a table that connects to a run time data table. For displaying the data, this works well. ...
4
by: Curious Trigger | last post by:
Hi there, I have got a gridview showing a display-name of a person and keeping its person-id as value accessible. Now I am wondering how I can get to his age, if this field isn't visible in...
3
by: Jeff | last post by:
Hey asp.net 2.0 In the source I posted below, there is a GridView (look at the bottom of the script): <asp:GridView ID="gvwOnline" runat="server"> </asp:GridView> I'm trying to assign a...
1
by: jmdolinger | last post by:
Hi all, I'm a newbie to Atlas (and recently ASP.NET) after coming from a long Java background, also have done quite a bit with an Ajax.NET/ASP.NET 1.1 project, but it was basically all...
2
by: needin4mation | last post by:
In a GridView, take for example a delete button. When I click the delete button in my GridView the GridView row is deleted and the GridView rebinds and refreshes the records to show accurately. ...
7
by: =?Utf-8?B?V2FubmFiZQ==?= | last post by:
Is there a way to use a gridview in a timecard application, and if so, how? I was looking at using a gridview to display a person's hours worked in a week. To do this, many different data records...
2
by: Tim Royal | last post by:
I'm using a GridView inside a Wizard Control with a textbox and two listboxes in the footer. I populate these listboxes from the database if the page isn't on postback (and the textbox is left...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.