Hi,
As per my requirement, i need to create template column programmatically (I don't know columns of data source at design time).
Am able to add template columns programmatically but data in columns lost in postbacks.
To overcome this, i moved columns adding logic to OnInit event, but same set of columns are adding again and again between postbacks.
I tried
As per my requirement, i need to create template column programmatically (I don't know columns of data source at design time).
Am able to add template columns programmatically but data in columns lost in postbacks.
To overcome this, i moved columns adding logic to OnInit event, but same set of columns are adding again and again between postbacks.
I tried
gv1.MasterTableView.Columns.Clear(); and gv1.Columns.Clear(); methods but they have not worked for me.
Please help me to fix this. Sample code will be greatly appreciated.
Thanks,
Sumanth