gridview checkedbox format

Posted on 2009-05-01
Last Modified: 2013-12-17
is it possible to change the format of a checkbox which is inside a gridview.

the default is  small and hard to see

i am using c#
Question by:Mr_Shaw

    Author Comment

    I have tried

    Gridview1.Rows[2].Cells[6].Font.Size = 20;

    It does not through an error.. but also does not work.

    Author Comment

    my code works with text, but not checkboxes
    LVL 26

    Accepted Solution

    here is the link for doing customization of check boxes

    i know how does it feel if your code works but does not affect the things you are targetting - but this is the way asp:checkbox has been designed - you cannot increase the size of it
    LVL 6

    Expert Comment


    What exactly are you trying to format...What properties are you attempting the change?


    Author Comment

    As an asp gridview is rendered as html I was able to apply CSS to change the size of the checkboxes.


    Author Closing Comment


    Featured Post

    Find Ransomware Secrets With All-Source Analysis

    Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

    Join & Write a Comment

    For those of you who don't follow the news, or just happen to live under rocks, Microsoft Research released a beta SDK ( for the Xbox 360 Kinect. If you don't know what a Kinect is (http:…
    Today I had a very interesting conundrum that had to get solved quickly. Needless to say, it wasn't resolved quickly because when we needed it we were very rushed, but as soon as the conference call was over and I took a step back I saw the correct …
    Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
    Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

    731 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    15 Experts available now in Live!

    Get 1:1 Help Now