C
Chuck P
I am inherting from the GridView and adding a property
ShowEditButton. When this is true a new column is added with an Edit
button. I override the CreateColumns event to do this.
What is the difference between, storing the property value in a private
local variable and ViewState?
In the design mode, I can change the property value and the display changes
automagically. This happens whether I use viewstate or a private variable. I
guess if a controls property is changed in design mode some event fires and
the control is rerendered???
At runtime I would like to change the value of the property in the PageLoad
event.
However, the control doesn't seem to get rerendered. Should I add something
to the setter to get the control to rerender or something?
thanks,
ShowEditButton. When this is true a new column is added with an Edit
button. I override the CreateColumns event to do this.
What is the difference between, storing the property value in a private
local variable and ViewState?
In the design mode, I can change the property value and the display changes
automagically. This happens whether I use viewstate or a private variable. I
guess if a controls property is changed in design mode some event fires and
the control is rerendered???
At runtime I would like to change the value of the property in the PageLoad
event.
However, the control doesn't seem to get rerendered. Should I add something
to the setter to get the control to rerender or something?
thanks,