What is the difference between command field and template field in grid view and how can I use them in grid view?
I am new in c# so please provide full help so I can feel easy to work with both.
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.
A
CommandFieldenables to display command buttons to perform selecting, editing, inserting, or deleting operations in a data-bound control.A
TemplateFieldenables to display custom content in a data-bound control. You could for example nest anotherGridViewinside it or a customWebUserControlwhich consists of several other controls.So in short:
CommandFieldautogenerates a button or link for special actions like edit/deleteTemplateFieldis extremely customizable, you can put anything there