Hi Please check the attached code snap shot...below
after binding source .....when i'm trying to hide the column with below line of code n ...i.m getting the error : Object reference not set to an instance of an object
_grdviewSearch.Columns[
"StartDate"].Hidden = true;
please let me know any of you have solution ?
Hello,
Were you able to resolve your issue or do you need further assistance?
Valerie
Hi prasantkumar ,
The Columns collection will not contain any autogenerated columns. Only columns you have actually defined on the aspx or added from the code behind. Perhaps that will help.
regards,David Young
Hi,
_grdviewSearch.Columns should have a number based index. If you use columns.fromkey, you can enter the column key.
Ed