2

I am adding columns to gridview by following code..

SPQuery query = new SPQuery();
query.Query = "<Where><Eq>"
   + "<FieldRef Name='Filter' />"
   + "<Value Type='Integer'>1</Value>"
   + "</Eq></Where>";

What do I need to do if I have to hide the column but need to use the column data.

4
  • Bind the data to column in gridview, and set visibility property of that column to false
  • Or you can hide using javascript

similar post

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.