[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

Creating an edit row on a DataGrid

Posted on 2012-08-30
1
Medium Priority
?
352 Views
Last Modified: 2012-12-20
Hi,

I am developing a ASP.NET application that displays a DataGrid for editing purposes. The DataGrid is bound to a DataSet that is associated to a SQL table via a DataAdapter. When this application is first deployed, the SQL Table will have been built but will be empty, so when the DataSet is bound to the DataGrid and the DataGrid is displayed, there will be no rows to display - only the column headers. How do I present the first blank row to the user for data entry? If there is initial data in the SQL table, I have been able to display it and have the user edit this data. I just haven't been able to figure out how to present a blank row.

Thx for any pointers/help you can provide ...
0
Comment
Question by:sccobber
1 Comment
 
LVL 1

Accepted Solution

by:
koenigbr earned 1500 total points
ID: 38433348
Have you looked at the AllowUserToAddRow event of the datagrid viewer?  If I remember right, that will add a row at the bottom of the data that is fully editable and blank.
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article shows gives you an overview on SQL Server 2016 row level security. You will also get to know the usages of row-level-security and how it works
What if you have to shut down the entire Citrix infrastructure for hardware maintenance, software upgrades or "the unknown"? I developed this plan for "the unknown" and hope that it helps you as well. This article explains how to properly shut down …
Via a live example combined with referencing Books Online, show some of the information that can be extracted from the Catalog Views in SQL Server.
Via a live example, show how to backup a database, simulate a failure backup the tail of the database transaction log and perform the restore.

830 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question