I have tried this too and can't find the syntax to blank it out (I'm not on
ASP 2.0):
In ItemDataBound, If the itemtype = EditItem, I tried
e.Item.Cells(7).Controls(3). ???
There is no text or value property. I can enable it or disable it and I
can't disable it because I want them to enter data.
"Teemu Keiski" <> wrote in message
news:...
> Hi,
>
> I'd think that if you'd handle ItemDataBound (or RowDataBound in GridView)
> and in that check if ItemType is EditItem (in GridView RowState =
> DataControlRowState.EditRow), you could search the control(s) from the row
> and blank it yourself. (Row|ItemDataBound happens after row is being
> databound so you can affect the outcome of it at this point)
>
> --
> Teemu Keiski
> ASP.NET MVP, AspInsider
> Finland, EU
> http://blogs.aspadvice.com/joteke
>
> "et" <> wrote in message
> news:...
>> When a user clicks on the Edit button in a grid, is there a way to force
>> certain fields to be blank instead of displaying the data?
>>
>>
>>
>>
>>
>
>