Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Web Developr Express and Gridview control

Posted on 2013-01-20
2
Medium Priority
?
341 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 6

Accepted Solution

by:
esolve earned 2000 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

How To Reduce Deployment Times With Pre-Baked AMIs

Even if we can't include all the files in the base image, we can sometimes include some of the larger files that we would otherwise have to download, and we can also sometimes remove the most time-consuming steps. This can help a lot with reducing deployment times.

Question has a verified solution.

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

Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
Ever needed a SQL 2008 Database replicated/mirrored/log shipped on another server but you can't take the downtime inflicted by initial snapshot or disconnect while T-logs are restored or mirror applied? You can use SQL Server Initialize from Backup…
Familiarize people with the process of utilizing SQL Server functions from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Microsoft Ac…
Viewers will learn how to use the INSERT statement to insert data into their tables. It will also introduce the NULL statement, to show them what happens when no value is giving for any given column.

688 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