I want to ask ,how add label on grid at run time and i want add label value also
so please reply with suitable example.
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
ps pandeyPosted Apr 1, 2013, 6:57 AM
but still i didn't get actual result
Jignesh TrivediPosted Apr 1, 2013, 6:53 AM
hi,
you can use RowDataBound as well as row create event (which is describe by Vishal).
generally RowDataBound event fired when data source is bind with grid view
please refer
http://msdn.microsoft.com/en-us/library/system.web.ui.webcontrols.gridview.rowdatabound.aspx
hope this will help you.
Vishal GilbilePosted Apr 1, 2013, 6:14 AM
You could make use of GridView RowCreated Event for doing this type of work.
Following is the code for the same.
Hope that solves your problem.
With Regards,
Vishal Gilbile.