Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

I have a datagrid for a user to edit records. It will load "ALL", "OPEN" or "CLOSED" records depending on a value selected from a dropdown. With "ALL" and "CLOSED" records, any records that are closed are not (or should not) be available for editing. It will depend on whether or not the cell containing the close date has a value.

Is there a way to disable a row when a date is present in the "close date" cell? Thanks in advance.

Posted

Take a look at the articles here:

 

http://aspnet.4guysfromrolla.com/articles/040502-1.aspx

 

In particular Part 8 (as well as being a useful concept in it's own right) covers the item databound event that you need to use. It also covers getting a reference to the delet button. In your case you will want to remove or hide the eidt button based on a test of the data in that row but the principle is similar.

 

:)

Please check the Knowledge Base before you post.

"Computers are useless. They can only give you answers." - Pablo Picasso

The Code Net

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...