I have a gridview and sqldatasource.
I want to remove the header text underline but only for some columns not all of them.
How can I do it?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Set
autogeneratecolumns="false"andallowsorting="true". Then you will need to define all of the columns you want to display in a<columns>child element to the gridview like so:When you use
autogeneratecolumns="true"andallowsorting="true"by default all columns will be sortable. When you explicitly define the columns, those that do not have thesortexpressionproperty set will not be sortable.