Hello to everyone!
The names Max, and I'm a bit of a newby to VB.NET / ASP.NET.
My problem is this..
I have a datagrid on a web page, which is bound to its data at runtime. Everything is working fine - Sorting, Filtering etc, except hiding columns.
when I try to hide one of the columns, I receive the following error message:
The VB.NET code I'm using is below:
Any help would be appreciated.
Thanks in advance - Max
The names Max, and I'm a bit of a newby to VB.NET / ASP.NET.
My problem is this..
I have a datagrid on a web page, which is bound to its data at runtime. Everything is working fine - Sorting, Filtering etc, except hiding columns.
when I try to hide one of the columns, I receive the following error message:
- Index was out of range. Must be non-negative and less than the size of the collection. Parameter name: index
The VB.NET code I'm using is below:
- [Me.dgPubs.Columns(myIndex).Visible = False]
- [Me.dgPubs.Columns.Items(myIndex).Visible = False]
Any help would be appreciated.
Thanks in advance - Max