Apply Authorization Rules ProblemApply Authorization Rules Problem
Old forum URL: forums.lhotka.net/forums/t/426.aspx
bobhagan posted on Wednesday, June 21, 2006
I'm getting null value exception at the line:
this.DetailsView1.Rows[
this.DetailsView1.Rows.Count - 1].Visible =
Client.CanEditObject();
Value cannot be null Parameter name: container
The Client object definitely exists and I reset the CanEditObject to
just return true, and finally removed Client.CanEditObject and set
Visible = true
Nothing seems to work. Ideas?
Bob Hagan
Brian Criswell replied on Wednesday, June 21, 2006
This could be a silly question, but have you checked everything on the left hand side of the equals sign to make sure that nothing is returning a null?
bobhagan replied on Wednesday, June 21, 2006
Sheesh! DetailsView.Rows[] is null.
On the form, I can refresh the control and it detects the fields in the
business object. That is what Rows refers to, right? So why
is it unable to count Rows?
Is this related to the csla DataSource problem discussed here?
http://forums.lhotka.net/forums/thread/2093.aspx. I thought I'd found a work around, and at least the control displays.
Thanks for the suggestion. Now I know what is wrong, but I have absolutely no idea of how to fix this.
Bob Hagan
Copyright (c) Marimer LLC