I am displaying records in my Datagrid and I am able to edit the records.
Is there a way to add a blank row at the bottom of the DataGrid to allow the
addition of new data?
I want to display the grid and allow the client to press a button that would
in essence add a new row at the bottom of the grid, allow them to add the
new data, then I would add the row to the database.
Thanks,
Tom 4 2487
Check here on how to do that http://www.datagridgirl.com/articles.aspx
"tshad" <ts**********@ftsolutions.com> wrote in message
news:uB*************@TK2MSFTNGP15.phx.gbl... I am displaying records in my Datagrid and I am able to edit the records.
Is there a way to add a blank row at the bottom of the DataGrid to allow
the addition of new data?
I want to display the grid and allow the client to press a button that
would in essence add a new row at the bottom of the grid, allow them to add the new data, then I would add the row to the database.
Thanks,
Tom
"Scott Mitchell [MVP]" <mi******@4guysfromrolla.com> wrote in message
news:41**************@4guysfromrolla.com... tshad wrote: Is there a way to add a blank row at the bottom of the DataGrid to allow the addition of new data?
I want to display the grid and allow the client to press a button that would in essence add a new row at the bottom of the grid, allow them to add the new data, then I would add the row to the database. Tom, check out this article:
Adding a New Record to the DataGrid http://aspnet.4guysfromrolla.com/articles/021203-1.aspx
I am printing it out now, as I write. Looks like what I was looking for. And for more information about DataGrids, check out my Extensive Examination of DataGrids article series, starting at http://aspnet.4guysfromrolla.com/articles/040502-1.aspx, as well as the FAQs and recommended articles at http://www.DataWebControls.com
I did print out (killed many trees to do it) and read your articles. Was
very good. I also have your kick start book. But nothing I could find
talked about add a row (at least I couldn't find it).
I was also going to post a question on how to move a row up and down in a
datagrid. Sorting is no problem, but that entails re-selecting the database
and re-binding. I just want to allow the user to push a button (which will
be an up arrow or down arrow) and move the data up or down (or redisplay
with the row moved).
Is there anything out there on how to do this (hopefully, easily)?
Thanks,
Tom.
Happy Programming!
--
Scott Mitchell mi******@4guysfromrolla.com http://www.4GuysFromRolla.com
* When you think ASP.NET, think 4GuysFromRolla.com!
"ESPN Lover" <es**@lover.com> wrote in message
news:eC*************@TK2MSFTNGP09.phx.gbl... Check here on how to do that
http://www.datagridgirl.com/articles.aspx
Quite a few articles on the subject here.
Thanks,
Tom
"tshad" <ts**********@ftsolutions.com> wrote in message news:uB*************@TK2MSFTNGP15.phx.gbl... I am displaying records in my Datagrid and I am able to edit the records.
Is there a way to add a blank row at the bottom of the DataGrid to allow the addition of new data?
I want to display the grid and allow the client to press a button that would in essence add a new row at the bottom of the grid, allow them to add the new data, then I would add the row to the database.
Thanks,
Tom
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Junkguy |
last post by:
I need to be able to tell if the blank row of a DataGrid has been edited or
not.
In a DataGrid, you may notice that if you click on the asterisk row, the
asterisk will change to a triangle, but...
|
by: Junkguy |
last post by:
Does anyone know the best way to put the cursor in the "blank" row of an
editable datagrid when it is initially displalyed?
I need to present the user with a list of rows from a dataset, but I...
|
by: tshad |
last post by:
How do I get blank cells to show in my dataGrid?
I am databinding to my datagrid, but any cells that are blank, don't show.
Normally, you would put an   in the cell to make IE display the...
|
by: Amir |
last post by:
I really hope someone can explain this behavior. I have spend quite a bit of
time and tried a bunch of things, so far nothing has worked.
I have a page on which I have a datagrid with template...
|
by: SatishPasala |
last post by:
Hi
I tried all the things I know am out of ideas now. Can you guys help
me out with this?
I have 4 grids on a page with I load on the Page_Load event. One of
the grids has paging. When I move...
|
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
|
by: BarryA |
last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
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...
|
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,...
|
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...
|
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: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
|
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...
| |