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
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