Hi all,
Ive read on the forums that if I dont want the first row in my gridview to be selected whenever I bind to a datasource, i could set the "CurrentRow" to nothing.
I use version: 2012.3.1211.20
When I try this however, I get an "Index was out of range. Must be non-negative and less than the size of the collection"
I have binded my grid to a list of my custom object.
Then ive tried the following:
gridview1.CurrentRow = nothing
and
gridview1.ClearSelection()
Both commands result in the "Index out of range"
Anybody else experienced the same problem?
Thanks.
Ive read on the forums that if I dont want the first row in my gridview to be selected whenever I bind to a datasource, i could set the "CurrentRow" to nothing.
I use version: 2012.3.1211.20
When I try this however, I get an "Index was out of range. Must be non-negative and less than the size of the collection"
I have binded my grid to a list of my custom object.
Then ive tried the following:
gridview1.CurrentRow = nothing
and
gridview1.ClearSelection()
Both commands result in the "Index out of range"
Anybody else experienced the same problem?
Thanks.