Solved

Web Developr Express and Gridview control

Posted on 2013-01-20
2
332 Views
Last Modified: 2013-01-20
I have a weird issue, I can't delete or update the first record I view in a gridview table, subsequent records I can delete, update etc.

I also get another issue, if I make any of the columns read only and then try and update a non read only column, the data will not change, also does not allow me to delete that record either. If I take read only off, it's ok.

Any ideas ?

I'm using web developer express 2010 and SQL 2005.
0
Comment
Question by:ndr-itsolutions
2 Comments
 
LVL 6

Accepted Solution

by:
esolve earned 500 total points
ID: 38798247
Do you have any code samples? Do you use automatic row update/delete or do you do it manually?

Setting the commandname of the edit buttons is important eg. The default "edit" will be used to do inline editing.

If you manually coding it and you use e.item.itemtype == GridItemType.AlternatingItem in the databind event it will only update every 2nd row.

If I remember correctly you're not allowed to set readonly on a column because obviosly you're explicitly denying updates/delete on that column or row.
0
 

Author Closing Comment

by:ndr-itsolutions
ID: 38798260
Brilliant, your last statement is spot on, I have removed the read only flag and can now edit and delete. I also under stand why.
0

Featured Post

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

Nowadays, some of developer are too much worried about data. Who is using data, who is updating it etc. etc. Because, data is more costlier in term of money and information. So security of data is focusing concern in days. Lets' understand the Au…
Slowly Changing Dimension Transformation component in data task flow is very useful for us to manage and control how data changes in SSIS.
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.

760 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

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now