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.

1 Answer 1

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

similar post

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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