Loading
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
Iftikar HussainRank #423 · 5.9K reputationPosted Jul 29, 2013, 11:17 PM EDT
Not clear about query. Can you explain more?
Regards,
Iftikar
Sanjeeb LenkaRank #301 · 8.3K reputationPosted Jul 29, 2013, 11:18 PM EDT
Hardik PatelRank #4,439 · 343 reputationPosted Jul 29, 2013, 11:36 PM EDT
else disable that particular row
Sanjeeb LenkaRank #301 · 8.3K reputationPosted Jul 29, 2013, 11:43 PM EDT
ex:
if you want more details share your code
Hardik PatelRank #4,439 · 343 reputationPosted Jul 30, 2013, 12:04 AM EDT
CommandField lnk = (CommandField)e.Row.FindControl("CommandField"); but it cause error
can not convert type "system.web.ui.control to system.web.ui.webcontril"
Hardik PatelRank #4,439 · 343 reputationPosted Jul 30, 2013, 12:04 AM EDT
Iftikar HussainRank #423 · 5.9K reputationPosted Jul 30, 2013, 12:15 AM EDT
OnRowCreated="GridViewRowCreated"
CommandField lnk = (CommandField)e.Row.FindControl("CommandField");
Regards,
Iftikar
Sanjeeb LenkaRank #301 · 8.3K reputationPosted Jul 30, 2013, 12:29 AM EDT
http://csharpdotnetfreak.blogspot.com/2012/06/hide-disable-commandfield-gridview.html
if any problem share your gridview aspx code and cs code