473,387 Members | 1,476 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,387 software developers and data experts.

Gridview: no built-in add/insert !?

Hi,

I don't have hands on experience in ASP .NET but have been assigned to
a web application, and I'm learning in the school of hard knocks. How
comes GridView has no support for adding/inserting new records, when
this is a routine task for any application? In the eighties almost any
product already supported that (FoxPro, Clipper, etc) why are we going
backwards? Would someone help me, please?

a) My gridviews need to allow the user to add new records on an empty
grid line at the end of the grid's data, not on a separate form.

b) The button for edit an existing row needs to be outside of the grid
(no repeated buttons on each line), but if I do that, how can I make
the edit textboxes appear on the grid line?

I greatly appreciate your help.

Thanks in advance,

Rick

May 30 '07 #1
1 1760
On May 30, 7:36 am, Rick <e_man_onl...@hotmail.comwrote:
Hi,

I don't have hands on experience in ASP .NET but have been assigned to
a web application, and I'm learning in the school of hard knocks. How
comes GridView has no support for adding/inserting new records, when
this is a routine task for any application? In the eighties almost any
product already supported that (FoxPro, Clipper, etc) why are we going
backwards? Would someone help me, please?

a) My gridviews need to allow the user to add new records on an empty
grid line at the end of the grid's data, not on a separate form.

b) The button for edit an existing row needs to be outside of the grid
(no repeated buttons on each line), but if I do that, how can I make
the edit textboxes appear on the grid line?

I greatly appreciate your help.

Thanks in advance,

Rick
Hi Rick

here's an example how you can do that
http://geekswithblogs.net/casualjim/articles/51360.aspx

Hope it helps

May 30 '07 #2

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

Similar topics

1
by: ABC | last post by:
I have an idea. I need to write a common gridview block which contains labels, textboxs, one girdview and some buttons. Then, I think the above block will apply on several girdview with...
6
by: Carlos Albert | last post by:
Hi everybody, I'm working with a gridview (4 bound columns and 1 template column, using databind from codebehind). It works just fine, but I tried to add paging, and when I click any paging...
0
by: jobo | last post by:
Hey there, I'm having a problem getting sorting to work. Here's what the GridView looks like: "server" ID="updt1" Mode="Conditional">
1
by: rn5a | last post by:
I was using a DataView to bind records from a DB table to a DataGrid using the following code: Dim sqlDapter As SqlDataAdapter Dim dSet As DataSet Dim dView As DataView sqlDapter = New...
3
by: Steve Kershaw | last post by:
Hi, I need a way to bind a DirectoryInfo array to a GridView without any errors. The code I'm using to create the DirectoryInfo array is: // Define the current directory DirectoryInfo dir...
5
by: jc | last post by:
I have a situation where I need to condition gridview item visibilty after they've been created and after a textbox on page has a value. What's the best way to do this in VB.NET? Any code sample? ...
4
by: mohaaron | last post by:
This seems like it should be simple to do but for some reason I have been unable to make it work. I would like to databind a SqlDataSource to a GridView during the click event of a button. This...
1
by: J | last post by:
I like the Edit (Update, Cancel) functionality built into the gridview, but I'd like to control what happens when the Update is clicked. I would like to prompt the user with something like this...
1
by: maz77 | last post by:
I'm working with VisualStudio and C#, and I'll try to explain the problem... I've built a custom class called "User.cs" that contains only Properties with set and get methods (ex: FirstName,...
5
by: Eric | last post by:
Hi, there are several gridviews all with a linkbutton which all trigger the same procedure. I need to know from which gridview the linkbutton has been clicked. Thanks Eric Here the code:
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

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.