i want to hide a column in gridview..but must be able to access the data from that column..
whenever i make the column visibility to false..i wont be able to access the data..
it works..only when the condition is true.
I tried the below method also..
GridView1.Columns.Item(0).ItemStyle.Width = 0
still the problem is not solved
the problem is solved only when there ocurs 1 entry in the gridview..
Given Below is my code..
here the variable p doesnot get any value when there is more than 1 entry in gridview
For i = 0 To GridView1.Rows.Count - 1
chk = GridView1.Rows(i).FindControl("CheckBox1")
If chk.Checked = True Then
p = GridView1.Rows(i).Cells(3).Text
Please help me to solve this problem....
Edited 6 Years Ago by bbman: n/a