C# Corner
Tech
News
Videos
Forums
Jobs
Books
Events
More
Interviews
Live
Learn
Training
Career
Members
Blogs
Challenges
Certification
Contribute
Article
Blog
Video
Ebook
Interview Question
Collapse
Feed
Dashboard
Wallet
Learn
Achievements
Network
Refer
Rewards
SharpGPT
Premium
Contribute
Article
Blog
Video
Ebook
Interview Question
Register
Login
How to Enable or Disable Check Box in Webgrid Base on Model Value
WhatsApp
Mukesh Kumar
Dec 01
2015
3.7
k
0
0
grid.Column
(
columnName: "bool1",
header: "bool1",
format: (item) =
>
@Html.Raw
(
"
<
input
type
=
'checkbox'
" + ((
item.bool1
==true) ? "checked" : "") + "
disabled
=
'disabled'
/>
"
)
)
Asp.net
Enable or Disable Check Box
Model Value
Up Next
How to Enable or Disable Check Box in Webgrid Base on Model Value