how to disable gridview row when bindind?
how to disable gridview row when bindind?
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.
Sanjeeb LenkaPosted Jul 30, 2013, 4:29 AM
http://csharpdotnetfreak.blogspot.com/2012/06/hide-disable-commandfield-gridview.html
if any problem share your gridview aspx code and cs code
Iftikar HussainPosted Jul 30, 2013, 4:15 AM
OnRowCreated="GridViewRowCreated"
CommandField lnk = (CommandField)e.Row.FindControl("CommandField");
Regards,
Iftikar
Hardik PatelPosted Jul 30, 2013, 4:04 AM
Hardik PatelPosted Jul 30, 2013, 4:04 AM
CommandField lnk = (CommandField)e.Row.FindControl("CommandField"); but it cause error
can not convert type "system.web.ui.control to system.web.ui.webcontril"
Sanjeeb LenkaPosted Jul 30, 2013, 3:43 AM
ex:
if you want more details share your code
Hardik PatelPosted Jul 30, 2013, 3:36 AM
else disable that particular row
Sanjeeb LenkaPosted Jul 30, 2013, 3:18 AM
Iftikar HussainPosted Jul 30, 2013, 3:17 AM
Not clear about query. Can you explain more?
Regards,
Iftikar