Ask a Question related to ASP.NET Data Grid Control, Design and Development.
-
Pkenty #1
disabling a textbox
How do you disable a TextBox in a datagrid in the Code
behind?
im using e.item.cells[1].Enabled = false..
But this doesnt stop the user actually typing anything in
textbox..just shows as grey?
any idea?
Pkenty Guest
-
Temporary Disabling?
Is there anybody there? -
disabling the default X GUI
OK, I'm an old-time Linux user, currently running Red Hat 6.1 on my laptop and 7.3, I think, on the desktop I use for work. I just installed Red... -
runat="server"....a simple html textbox or a webform server textbox...that is the question.
I just realized that the code I inherited is using all asp.net server controls (ie. webform controls) and when I try to update textboxes on the... -
VERY STRANGE BUG? Adding a textbox control causes other textbox control to fail???
I've had this happen a few times too. I'm still not positive of what exactly causes it but all that's happening is the control that no longer... -
disabling programs in XP?
How do I disable programs except explorer and systray. To install some new programs, programe that are running are to be disabled. I know how to... -
Marshal Antony #2
Re: disabling a textbox
Hi,
((TextBox)e.Item.Cells[2].Controls[0]).Enabled=false; or
((TextBox)e.Item.Cells[2].Controls[1]).Enabled=false;
depends on the index of your textbox control on your datagrid cell.
Hope this helps.
Regards,
Marshal Antony
..NET Developer
[url]http://www.dotnetmarshal.com[/url]
"Pkenty" <anonymous@discussions.microsoft.com> wrote in message
news:7b8c01c402d4$fab71000$a401280a@phx.gbl...> How do you disable a TextBox in a datagrid in the Code
> behind?
> im using e.item.cells[1].Enabled = false..
> But this doesnt stop the user actually typing anything in
> textbox..just shows as grey?
> any idea?
Marshal Antony Guest



Reply With Quote

