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 / May 2004

Tip: Looking for answers? Try searching our database.

Hidden columns in execution time

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Wallace Santos - 26 May 2004 16:02 GMT
Hi,

I have one datagrid where the columns are mounted in execution time and use
a column template where exists a link. One necessary to make that the second
column of grid that is mounted in execution time become hidden.

Someone help me?

And excuse my english errs
Paul - 26 May 2004 16:44 GMT
I'm going to assume that you have a datagrid with only 2 columns, the 1st
one you want displayed, they 2nd one you want hidden.

If you are letting the datagrid automatically generate the columns at
runtime, you would put something like this in your Page_Load handler:

MyDataGrid.Columns[1].Visible = false;        // rows/columns index starting
at 0.

If you have set AutoGenerateColumns to false for your datagrid, just go to
the datagrid's Collections property, open up the dialog, go to the "Columns"
page and uncheck "Visible" for the column you want to hide.

HTH.

Paul

> Hi,
>
[quoted text clipped - 5 lines]
>
> And excuse my english errs
Wallace Santos - 26 May 2004 18:55 GMT
thank's Paul, but this did not decide my problem and i already had attemped
to apply this solution.

I have a column with hyperlink where it must receive the page from
destination and field ID of the data base but does not have to show column
ID

As this pagina makes search for many different pages the connection with the
DB was not carried through in development time

If I to use an  XML file, it would be more easy?

Thank's again

> I'm going to assume that you have a datagrid with only 2 columns, the 1st
> one you want displayed, they 2nd one you want hidden.
[quoted text clipped - 24 lines]
> >
> > And excuse my english errs
Eliyahu Goldin - 27 May 2004 09:38 GMT
Wallace,

You can make it with stylesheets. For the columns you want to hide set
CssClass="Invisible" and define Invisible in a stylesheet as
.Invisible {display:none}

Eliyahu

> Hi,
>
[quoted text clipped - 5 lines]
>
> And excuse my english errs

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.