|
 |
aspx thread: checkbox in Datagrid
Message #1 by "Peter Pan" <tangolp@y...> on Fri, 22 Nov 2002 21:16:51
|
|
I have a datagrid with a checkbox, a column named product, a column name
price, and a text box (disabled when loaded). When click on the checkbox
for that item, I would like it to enable the text box for the user to
enter a quantity. I saw a lot of examples with "Edit" feature but I'd
like to do with a checkbox. Is it possible to do this? Thank you.
Message #2 by "jayathakar" <jayathakar@y...> on Sat, 30 Nov 2002 10:04:33
|
|
> I have a datagrid with a checkbox, a column named product, a column
name
p> rice, and a text box (disabled when loaded). When click on the
checkbox
f> or that item, I would like it to enable the text box for the user to
e> nter a quantity. I saw a lot of examples with "Edit" feature but I'd
l> ike to do with a checkbox. Is it possible to do this? Thank you.
Try this...
Use the ItemCommand Event of the DataGrid to do so.The AutoPostBack
property of the checkBox should be set to TRUE.In the event
check for e.Item.ItemIndex to get the index of the selected check box and
set the corresponding textbox visible property.
--Regards
Jaya
|
|
 |