This question is locked. New answers and comments are not allowed.
Hi,
I have a gridview with several columns that can contain a user control. These columns are created dynamically and I need to know which column contains the user control. How can I determine from within the user control the column? I tried using code of the form:
GridViewColumn gc = this.ParentofType<GridViewColumn>();, but this always returns null.
Thanks,
jerry
I have a gridview with several columns that can contain a user control. These columns are created dynamically and I need to know which column contains the user control. How can I determine from within the user control the column? I tried using code of the form:
GridViewColumn gc = this.ParentofType<GridViewColumn>();, but this always returns null.
Thanks,
jerry