Wayne,
If you want to select a whole row when a cell is selected, you will want
to hook up to the CellChanged event and then select the whole row when the
cell changes.
If you want to hide some columns, then what you will want to do is get
the TableStyles for the particular table you want to view, and then get the
ColumnStyles for that table. Then, you would just remove the columns that
you don't want to see.
Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
-
ni**************@exisconsulting.com
"Wayne Gibson" <wa**********@rendersoft.com> wrote in message
news:bj*******************@news.demon.co.uk...
Hi all,
Was wondering if somebody could help me or at least point me in the right
direction...
I have a System.Windows.Forms.DataGrid, which is bound to a dataset. I
would like to hide certain columns, so that the user can't see them..
Also was wondering if it was possible if when a cell was selected the
whole row is selected..
I want it to behave like a Listbox, I guess..
Thanks
Wayne Gibson