lorena Posted August 3, 2005 Posted August 3, 2005 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. Quote
Polar Bear Posted August 5, 2005 Posted August 5, 2005 How are you displaying the datagrid columns right now? Bound Columns or Template Columns? Quote
bri189a Posted August 5, 2005 Posted August 5, 2005 Set up a check in the item data bound event. Quote
mark007 Posted August 5, 2005 Posted August 5, 2005 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. :) Quote Please check the Knowledge Base before you post. "Computers are useless. They can only give you answers." - Pablo Picasso The Code Net
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.