Datagridview comboboxMAMinnu Merin Alex10yAsked Apr 29, 2016, 2:39 AM EDT7 answersShareLinkedInXCopy linkSavehow to disable an item in datagridviewcombobox programmically
Datagridview comboboxMAMinnu Merin Alex10yAsked Apr 29, 2016, 2:39 AM EDT7 answersShareLinkedInXCopy linkSavehow to disable an item in datagridviewcombobox programmically
Bhuvanesh MohankumarRank #310 · 8.1K reputation10y agoPosted Apr 29, 2016, 3:38 AM EDT0You can make the item disabled using property during Row data Binding0
Parth Mehta68 reputation10y agoPosted Apr 29, 2016, 4:31 AM EDT0frist in your grid here is your combo box give it id i have button.. Text="Release" Visible="false" CssClass="btn btn-success btn-sm" /> after that go in code pagego to RowDataBound event put code;;if (e.Row.RowType == DataControlRowType.DataRow) { Button btn = (Button)e.Row.FindControl("btndelete"); btn.Visible = true;// here i disable button You can do with combobox.}0MAMinnu Merin Alex188 reputation10y agoPosted Apr 29, 2016, 8:56 PM EDT0iam doing it in win forms0Vipan SharmaRank #1,589 · 999 reputation10y agoPosted Apr 30, 2016, 2:55 AM EDT0 check below link it will solve your issue. http://stackoverflow.com/questions/5373548/runtime-disable-the-datagridviewcombobox 0Bhuvanesh MohankumarRank #310 · 8.1K reputation10y agoPosted Apr 29, 2016, 4:01 AM EDT-1Here is the code sample. http://stackoverflow.com/questions/5373548/runtime-disable-the-datagridviewcombobox -1Munesh SharmaRank #174 · 13.9K reputation10y agoPosted May 2, 2016, 9:47 AM EDT-1http://stackoverflow.com/questions/5373548/runtime-disable-the-datagridviewcombobox-1Join to answer this questionEvery answer you publish earns 20 SHARP.Create free accountSign inKnow the answer?Answer a question in the forums and earn +20 SHARP for every answer.See unanswered questionsForumsTop experts01Arun PottiAnswers in the forums20answers02Tahir AnsariAnswers in the forums5answers03Kamlesh KumarAnswers in the forums5answers04Sam HobbsAnswers in the forums4answers05Željko PerićAnswers in the forums3answers?YouYour name goes here.Every answer: 20 SHARP.JoinFull leaderboard →2026DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Vipan SharmaRank #1,589 · 999 reputation10y agoPosted Apr 30, 2016, 2:55 AM EDT0 check below link it will solve your issue. http://stackoverflow.com/questions/5373548/runtime-disable-the-datagridviewcombobox 0
Bhuvanesh MohankumarRank #310 · 8.1K reputation10y agoPosted Apr 29, 2016, 4:01 AM EDT-1Here is the code sample. http://stackoverflow.com/questions/5373548/runtime-disable-the-datagridviewcombobox -1
Munesh SharmaRank #174 · 13.9K reputation10y agoPosted May 2, 2016, 9:47 AM EDT-1http://stackoverflow.com/questions/5373548/runtime-disable-the-datagridviewcombobox-1
Bhuvanesh MohankumarRank #310 · 8.1K reputationPosted Apr 29, 2016, 3:38 AM EDT
Minnu Merin Alex188 reputationPosted Apr 29, 2016, 3:41 AM EDT
Parth Mehta68 reputationPosted Apr 29, 2016, 4:31 AM EDT
Minnu Merin Alex188 reputationPosted Apr 29, 2016, 8:56 PM EDT
Vipan SharmaRank #1,589 · 999 reputationPosted Apr 30, 2016, 2:55 AM EDT
Bhuvanesh MohankumarRank #310 · 8.1K reputationPosted Apr 29, 2016, 4:01 AM EDT
Here is the code sample.
Munesh SharmaRank #174 · 13.9K reputationPosted May 2, 2016, 9:47 AM EDT
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questionsTop experts