Re: HeadTemplate UserControl State
- From: "Crosscourt" <noreply@xxxxxxxxxx>
- Date: Tue, 31 May 2005 10:24:43 +1000
Yeah, EnableViewState is default to true and i didn't change it.
This is in the column header where i try to have an arrow for the sorting.
I have a click event that toggles the text of the label that represents the
arrow, looping thru the states of ("","ASC","DESC")
However, when i rebind & postback, the label text is gone. I guess it got
reset to "".
Any ideas?
thanks
"Mona" <mona@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:uENwoSRZFHA.2520@xxxxxxxxxxxxxxxxxxxxxxx
> Hi Anthony,
>
> To make the web pages remember or maintain the values on postback
> you need to set the Enable.ViewSate property to True.
>
> HTH
>
> Mona[Grapecity]
>
>
> "Crosscourt" <noreply@xxxxxxxxxx> wrote in message
> news:%238TyyIlYFHA.1344@xxxxxxxxxxxxxxxxxxxxxxx
>> If i have a template column with a template header whoch contains a Label
>> Control,
>> The datagrid seems to regenerate the labels on postback. How can i force
>> it to remeber the text property if it was changed dynamically?
>>
>> Anthony
>>
>
>
.
- References:
- HeadTemplate UserControl State
- From: Crosscourt
- Re: HeadTemplate UserControl State
- From: Mona
- HeadTemplate UserControl State
- Prev by Date: Re: Client Side validation on datagrid
- Next by Date: How to get the DataKeyField in the DataGrid ?
- Previous by thread: Re: HeadTemplate UserControl State
- Next by thread: DataGrid with Inherits
- Index(es):
Relevant Pages
|