CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Mar 2001
    Location
    Belgium
    Posts
    3

    Datagrid - checkbox

    I have displayed a datagrid linked to an Access-table. The Access-table contains a yes/no field. The link between the Access-table and the datagrid is all right, except for the boolean or yes/no field, because in the datagrid, only the value of this boolean field is shown (0 or 1), and I would like to see the checkbox instead.

    Is there any possibility to show a checkbox in the datagrid in runtime ?


  2. #2
    Join Date
    May 2000
    Location
    New York, NY, USA
    Posts
    2,878

    Re: Datagrid - checkbox

    try this

    column (grid.columns(index).style = ssStyleCheckBox

    Iouri Boutchkine
    [email protected]
    Iouri Boutchkine
    [email protected]

  3. #3
    Join Date
    Mar 2001
    Location
    Belgium
    Posts
    3

    Re: Datagrid - checkbox

    Thanx for your reply !

    Tried everything, but can't find the solution. Your suggestion "ssStyleCheckbox" is not a code applicable to VB 6.0.

    You have any suggestions for VB 6.0 ??



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

Featured