Home Forums WinForms controls Xceed Grid for WinForms Troubles Adding Buttons to a Grid

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • User (Old forums)
    Member
    Post count: 23064
    #13698 |

    Hi I cannot see where to add a button and the help topics are hard to find.

    I can add a combo box to a grid fine, see code below.

    Dim _ComboBox As New Xceed.Grid.Editors.GridComboBox
    _ComboBox.Items.AddRange(New Object() {“Yes/No”, “Grid Score”, “Multiple Choice Single Answer”, “Multiple Choice Multiple Answer”, “Grid Score Comment Field”, “Open or Comment”, “Area Code”, “Triplex”})
    Questions_Grid.Columns(“QuestionType”).CellEditor = _ComboBox

    But how do I add a button.

    Also how do I manage events on this button? For example I need to open a dialog when we click on a button in a coloumn and pass say the data that is in a row called “SurveyID”. A

    Any ideas?

    Thx

    Imported from legacy forums. Posted by DarenHawes (had 2652 views)

    User (Old forums)
    Member
    Post count: 23064

    The Xceed Knowledge Base has an article for this, with a demo: http://cs.xceed.com/KB/questions.php?questionid=346

    Imported from legacy forums. Posted by Tommy (had 3837 views)

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.