all groups > asp.net webcontrols > may 2005 >
You're in the

asp.net webcontrols

group:

How to diisable textbox in datagrid


How to diisable textbox in datagrid latha
5/29/2005 10:45:14 PM
asp.net webcontrols:

Hi

I have a listbox outside the grid and textbox type template as editable
column in datagrid.

How can I disable textbox in my grid based on the selection from the
listbox outside the grid?

--
Re: How to diisable textbox in datagrid Brock Allen
5/30/2005 7:05:00 AM
You can get the grid valriable, find the row you want to work with and then
call FindControl() passing the ID of the TextBox inside the template for
your Grid. This will return the TextBox contorl that you can set any of its
properties. If you want to do this for all TextBoxes in the grid, loop over
every row and repeat the process.

-Brock
DevelopMentor
http://staff.develop.com/ballen



[quoted text, click to view]


AddThis Social Bookmark Button