Solved

Web Developr Express and Gridview control

Posted on 2013-01-20
2
336 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 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

U.S. Department of Agriculture and Acronis Access

With the new era of mobile computing, smartphones and tablets, wireless communications and cloud services, the USDA sought to take advantage of a mobilized workforce and the blurring lines between personal and corporate computing resources.

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…
This article shows how to deploy dynamic backgrounds to computers depending on the aspect ratio of display
This video shows, step by step, how to configure Oracle Heterogeneous Services via the Generic Gateway Agent in order to make a connection from an Oracle session and access a remote SQL Server database table.
Via a live example, show how to extract information from SQL Server on Database, Connection and Server properties

626 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