Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Visual Basic
  4. Checkbox on Datagrid?

Checkbox on Datagrid?

Scheduled Pinned Locked Moved Visual Basic
questioncsharp
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • W Offline
    W Offline
    Widgets
    wrote on last edited by
    #1

    How can I place a checkbox in a column of the Datagrid in VB6? like what datagridview in .net can do..

    G 1 Reply Last reply
    0
    • W Widgets

      How can I place a checkbox in a column of the Datagrid in VB6? like what datagridview in .net can do..

      G Offline
      G Offline
      Gary Bigman
      wrote on last edited by
      #2

      Hi, The datagrid by default does not offer checkbox as a value for any of its cells. However I have created a work-around to get around this problem. I have placed a checkbox on the form and when the grid loads the checkbox is moved to the cell. Code attached:). ************ Private Sub Form_Load() 'on the form: 'one flexgrid (named= flex1) 'one checkbox (named= tb) Dim intX As Integer tb.Visible = False With flex1 .Columns(0).Width = 2000 .RowHeight = 300 tb.Caption = "Box" tb.Width = 500 tb.Move flex1.Left + 350, flex1.Top + 250, flex1.Width / 15, flex1.Height / 199 tb.BackColor = .BackColor tb.Visible = True End With End Sub ************

      Gary Bigman. Software Engineer ComponentOne LLC www.componentone.com

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups