In the asp.net editable gridview I have header text as ‘FieldName *’.
As I am allowing user to enter the data and the data is mandatory.
Can I set FieldName with blue color and * with red color in header ??
If yes..how?
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.
You can insert HTML code into the
HeaderTextfor theFieldName.Like this
HeaderText="<font color="blue">FieldName </font><font color="red">*</font>"The page will interpret the HTML code and show it as you desire.
But you may have to set the
HtmlEncodeproperty for yourBoundFieldin order to force the page to interpret the HTML code.