?
Solved

.net Datagrid question, Stop add new row when editing

Posted on 2004-11-04
3
Medium Priority
?
202 Views
Last Modified: 2010-04-24
hi

very quick question, the answer in fact is problably only one line but i will be damned if i can find it. I have a datagrid which has a button to add new data from a custom dialog. I allow editing in the datagrid itself, what i dont want is to allow users to be able to add a new row from the automatically generated new row element at the bottom of the datagrid.

The reason for this is that this data contrains filenames which i want some level of validation over.

regards

james
0
Comment
Question by:james-ct16
  • 2
3 Comments
 
LVL 25

Expert Comment

by:RonaldBiemans
ID: 12493174
Use a dataview as your datasource for the grid and set dv.allownew = false
0
 
LVL 25

Accepted Solution

by:
RonaldBiemans earned 375 total points
ID: 12493191
If you use a dataview you can idividualy set the following options

dv.allownew
dv.allowdelete
dv.allowedit
0
 
LVL 10

Author Comment

by:james-ct16
ID: 12523015
thankyou for your help

james
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying 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

Introduction As chip makers focus on adding processor cores over increasing clock speed, developers need to utilize the features of modern CPUs.  One of the ways we can do this is by implementing parallel algorithms in our software.   One recent…
Introduction When many people think of the WebBrowser (http://msdn.microsoft.com/en-us/library/2te2y1x6%28v=VS.85%29.aspx) control, they immediately think of a control which allows the viewing and navigation of web pages. While this is true, it's a…
this video summaries big data hadoop online training demo (http://onlineitguru.com/big-data-hadoop-online-training-placement.html) , and covers basics in big data hadoop .
Is your OST file inaccessible, Need to transfer OST file from one computer to another? Want to convert OST file to PST? If the answer to any of the above question is yes, then look no further. With the help of Stellar OST to PST Converter, you can e…

621 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