M
Michelle Stone
I have several Data Adapters, and depending on certain
conditions, I set one of them as the DataSource for a
datagrid on my web form.
In each of the data adapters, I have the primary key of
the respective tables SELECTed in the select-queries, so
that I may use that field as the DataKeyField of my
datagrid.
But when I set the dataset produced from my data adapter
as the datasource, my DATAGRID also shows the primary key
as a separate column which i don't want.
How can I HIDE a column in my datagrid?
approvalGrid.Columns[0].Visible = false did NOt work
saying that such a column does not exist. Perhaps this is
because all my columns are generated automatically and
the 0th column does not physically exist.
Help...
Thanks....
conditions, I set one of them as the DataSource for a
datagrid on my web form.
In each of the data adapters, I have the primary key of
the respective tables SELECTed in the select-queries, so
that I may use that field as the DataKeyField of my
datagrid.
But when I set the dataset produced from my data adapter
as the datasource, my DATAGRID also shows the primary key
as a separate column which i don't want.
How can I HIDE a column in my datagrid?
approvalGrid.Columns[0].Visible = false did NOt work
saying that such a column does not exist. Perhaps this is
because all my columns are generated automatically and
the 0th column does not physically exist.
Help...
Thanks....