Results 1 to 4 of 4

Thread: checkbox column in datagrid (.net)

  1. #1

    Thread Starter
    New Member
    Join Date
    Jan 2006
    Posts
    4

    Unhappy checkbox column in datagrid (.net)

    Hi,
    A got a page that list all members from my database, but I would like to have a checkbox to see if the user is active or not, and to be able to update the page in the database, but i'm not really sure how to do it because it's the first time a try.
    Thanks for the help
    punky.

  2. #2
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: checkbox column in datagrid (.net)

    You say "page". Does that mean that this is a WebForms app? The WinForms DataGrid is a completely different control to the WebForms DataGrid so this is an important distinction. If so, the ASP.NET forum is probably a better place to post this question, although you may well still get an answer here.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  3. #3
    Member
    Join Date
    Jan 2006
    Posts
    37

    Re: checkbox column in datagrid (.net)

    attached to the datagrid the datagridboolcolumn in

    Dim myboolcol as datagridboolcolumn
    datagrridtablestyle.gridcolumnstyles.add(myboolcol)

  4. #4
    Member
    Join Date
    Jan 2006
    Posts
    37

    Re: checkbox column in datagrid (.net)

    for a web form , you can right-click the datagrid then click the propery builder then you can assign the column as a textbox, checkbox.....

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