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. How to add button in window form datagrid

How to add button in window form datagrid

Scheduled Pinned Locked Moved Visual Basic
helptutorialquestion
3 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.
  • E Offline
    E Offline
    Eunice VB junior
    wrote on last edited by
    #1

    Hi, I would like to add a button column on each row in datagrid. How should i do it? I searched the forum from google. The codes look like this: - ' Set datagrid XP Style Button ColumnStyle for City field .Add(New DataGridXPButtonColumn(SystemColors.ControlText, SystemColors.Control)) ' Also you may set datagrid Button ColumnStyle for City ' field without XP Button Style as the following: ' .Add(New DataGridButtonColumn()) With .Item(3) .MappingName = "City" .HeaderText = "City" .Width = 60 .NullText = String.Empty End With But the problem that I'm facing is, i can't add "New DataGridXPButtonColumn" or "New DataGridButtonColumn" in datagridtablestyle. There is no "datagridbuttoncolum" for me to add. It's not allow for me to do so. How should i do? Pls help..... thanks in advance. regards, eunice

    D 1 Reply Last reply
    0
    • E Eunice VB junior

      Hi, I would like to add a button column on each row in datagrid. How should i do it? I searched the forum from google. The codes look like this: - ' Set datagrid XP Style Button ColumnStyle for City field .Add(New DataGridXPButtonColumn(SystemColors.ControlText, SystemColors.Control)) ' Also you may set datagrid Button ColumnStyle for City ' field without XP Button Style as the following: ' .Add(New DataGridButtonColumn()) With .Item(3) .MappingName = "City" .HeaderText = "City" .Width = 60 .NullText = String.Empty End With But the problem that I'm facing is, i can't add "New DataGridXPButtonColumn" or "New DataGridButtonColumn" in datagridtablestyle. There is no "datagridbuttoncolum" for me to add. It's not allow for me to do so. How should i do? Pls help..... thanks in advance. regards, eunice

      D Offline
      D Offline
      Dave Kreskowiak
      wrote on last edited by
      #2

      Are you using the DataGrid (.NET 1.0 and 1.1) or the DataGridView (.NET 2.0 and above)?? Google results for "add button to datagridview[^]".

      A guide to posting questions on CodeProject[^]
      Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
           2006, 2007

      E 1 Reply Last reply
      0
      • D Dave Kreskowiak

        Are you using the DataGrid (.NET 1.0 and 1.1) or the DataGridView (.NET 2.0 and above)?? Google results for "add button to datagridview[^]".

        A guide to posting questions on CodeProject[^]
        Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
             2006, 2007

        E Offline
        E Offline
        Eunice VB junior
        wrote on last edited by
        #3

        Hi Dave, I'm using DataGrid (.net 1.1) version, for vb.net window application. It doesn't have "DataGridButtonColumn" control. How can i add the button column in datagrid. Pls guide me. Thanks.

        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