Re: update gridview
- From: "Riki" <riki@xxxxxxxxxx>
- Date: Wed, 8 Mar 2006 15:30:54 +0100
I suggest putting both the TextBox and the DropDownlist on the edit
template.
Depending on the condition, give the right one the property Visible=False.
You can even do this through databinding:
Visible='<%# Eval("somefield") %>'
On update, check which one is visible, and retrieve its value.
--
Riki
<aarif.shah@xxxxxxxxx> wrote in message
news:1141820599.809275.13320@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Hi, i am Aarif,
I Have a gridview.On clicking the edit link of gridview i want my
edititem template(that i have defined ) to show either Texbox control
or dropdown list depending on some condition.
when user clicks on update link of the gridview,the value shoud be
taken from either textbox or selected value of dropdown list
depending upon which control is appearing in the edit mode.
How can i do this?
Aarif Majid
.
- References:
- update gridview
- From: aarif . shah
- update gridview
- Prev by Date: Re: aspnet2005: What is Page_Load ?
- Next by Date: Re: wrong option selected in dropdownlist
- Previous by thread: update gridview
- Next by thread: Re: Adding button programatically - NON-FUNCTIONAL!!
- Index(es):
Relevant Pages
|