Is there any setting in gridview control to hide a template feild in normal mode but show the hidden feild in edit item template.
Thanks
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.
To hide a column use ie.
GridView1.Columns[0].Visible = false;. Be aware that it will NOT be data-bound so you cannot use a hidden column to retrieve some values you do not want to user to see, like you could with the oldDataGrid.To show a field just on the row that is being editted, add a
TemplateFieldwith an emptyItemTemplate, and a filledEditTemplate.