Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 344
  • Last Modified:

Web Developr Express and Gridview control

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
ndr-itsolutions
Asked:
ndr-itsolutions
1 Solution
 
esolveCommented:
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
 
ndr-itsolutionsAuthor Commented:
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

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now