![]() |
|
|
|||||||
![]() |
ASP Net - ASP.Net DataGrid Template column when inivisible |
|
|
Thread Tools | Search this Thread |
|
|
#1 |
|
I have a datagrid with template comlumns that have textboxes which are
populated via the ItemDataBound command. However, when I set a column to be invisible, I can no longer retreive the value of that textbox even though the viewstate is enabled. I can still retrieve the value of a databound column, so why not a templated column when it's invisible? spidur1 |
|
|
|
|
#2 |
|
Posts: n/a
|
On what stage do you try to retreive the value? Note, that if you set the
column property Visible=false, the column won't be rendered to the client. If you think that could be the problem, make the column invisible with css rule display:none. Eliyahu "spidur1" <> wrote in message news: oups.com... > I have a datagrid with template comlumns that have textboxes which are > populated via the ItemDataBound command. > However, when I set a column to be invisible, I can no longer retreive > the value of that textbox even though the viewstate is enabled. I can > still retrieve the value of a databound column, so why not a templated > column when it's invisible? > |
|
|
|
#3 |
|
Posts: n/a
|
Yeah the problem is that it's not being redered to the client. How do
I use the css rule display:none? Thanks for your help! |
|
|
|
#4 |
|
Posts: n/a
|
It is not being rendered to the client. That's the problem. How do I
set the css rule? Thanks for your help! |
|
|
|
#5 |
|
Posts: n/a
|
Make a stylesheet, either on the page or in a separate file, and add a rule
like ..Invisible{display:none} Set CssClass property of the column to "Invisible" Eliyahu "spidur1" <> wrote in message news: oups.com... > Yeah the problem is that it's not being redered to the client. How do > I use the css rule display:none? Thanks for your help! > |
|
|
|
#6 |
|
Posts: n/a
|
There is no CssClass property of the column, only the control itself.
|
|
|
|
#7 |
|
Posts: n/a
|
Put
<ItemStyle CssClass="Invisible"></ItemStyle> within <TemplateColumn> tags Eliyahu "spidur1" <> wrote in message news: ups.com... > There is no CssClass property of the column, only the control itself. > |
|
|
|
#8 |
|
Posts: n/a
|
spidur1 what Eliyahu is advicing is to have:- <ItemStyle CssClass="Invisible"></ItemStyle> where Invisible will be the CSS u created in th CSS file. Hope this helps Patrick *** Sent via Developersdex http://www.developersdex.com *** Don't just participate in USENET...get rewarded for it! |
|