Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / DataGrid / August 2006

Tip: Looking for answers? Try searching our database.

Get value if invisible

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
ghostwolf - 02 Aug 2006 10:15 GMT
Hi,

I'm using the asp:gridview control for displaying the data from SQL Server.
Now, I've found that if the column is invisible
"<asp:BoundField DataField="some_id" HeaderText="some_id"
SortExpression="some_id" Visible="false"/>", I cannot get the value from
that column (just get the null string by "GridView1.Rows[1].Cells[0].Text".

Thanks.

Regards,
Eliyahu Goldin - 02 Aug 2006 11:50 GMT
Web controls with Visible=false don't get sent to client. Hide them rather
with css style display:none.

Signature

Eliyahu Goldin,
Software Developer & Consultant
Microsoft MVP [ASP.NET]

> Hi,
>
[quoted text clipped - 8 lines]
>
> Regards,
ghostwolf - 03 Aug 2006 20:54 GMT
Thanks, how can I add this property to the particular column?

> Web controls with Visible=false don't get sent to client. Hide them rather
> with css style display:none.
[quoted text clipped - 11 lines]
>>
>> Regards,
ghostwolf - 03 Aug 2006 21:03 GMT
especially in a ASP.NET page.

> Thanks, how can I add this property to the particular column?
>
[quoted text clipped - 13 lines]
>>>
>>> Regards,

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.