How to add data filed in grid view
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Satyapriya NayakRank #47 · 31.5K reputationPosted Mar 23, 2012, 5:26 AM EDT
Thanks
SenthilkumarRank #387 · 6.5K reputationPosted Mar 24, 2012, 6:35 PM EDT
This common easy way to show the data is BoundField.
If you want to show the data in the other web controls like LinkButton, etc..,
You can use the template field.
This enables you to implement the custom format.
Other than BoundField, ASP.Net grid supports to do in other fields like
CommandField
ButtonField
ImageField
TemplateField
CheckBoxField