Results 1 to 3 of 3

Thread: [RESOLVED] checkbox in gridview

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Oct 2007
    Posts
    270

    Resolved [RESOLVED] checkbox in gridview

    i have status field in database with value 1 or 0 ,if zero is coming from database i want that it an bind with gridview checkbox as checked other with unchecked without writing code behind

    or u can say that single checkbox column in grid that bind with staus field with zero or one,

  2. #2
    VB Addict Pradeep1210's Avatar
    Join Date
    Apr 2004
    Location
    Inside the CPU...
    Posts
    6,614

    Re: checkbox in gridview

    You can add a CheckBoxField or a TemplateField (for complex situations)
    Code:
    <asp:CheckBoxField DataField="yourfield" SortExpression="yourfield" HeaderText="something" />
    Pradeep, Microsoft MVP (Visual Basic)
    Please appreciate posts that have helped you by clicking icon on the left of the post.
    "A problem well stated is a problem half solved." — Charles F. Kettering

    Read articles on My Blog101 LINQ SamplesJSON ValidatorXML Schema Validator"How Do I" videos on MSDNVB.NET and C# ComparisonGood Coding PracticesVBForums Reputation SaverString EnumSuper Simple Tetris Game


    (2010-2013)
    NB: I do not answer coding questions via PM. If you want my help, then make a post and PM me it's link. If I can help, trust me I will...

  3. #3

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width