This is a migrated thread and some comments may be shown as answers.

problems with column with different controls

1 Answer 103 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Manolo
Top achievements
Rank 1
Manolo asked on 21 Dec 2010, 06:24 PM
  Me.RadGridView1.ColumnCount = 2

        Dim heterow0 As DataGridViewRow = New DataGridViewRow


        Dim textBoxCell As DataGridViewTextBoxCell = New DataGridViewTextBoxCell
        textBoxCell.Value = "Turn Over Based On"
        Dim comboCell As DataGridViewComboBoxCell = New DataGridViewComboBoxCell()
        comboCell.Items.Add("Chip Transaction")
        comboCell.Items.Add("Win/Loss")
  Me.RadGridView1.ColumnCount = 2

        Dim heterow0 As DataGridViewRow = New DataGridViewRow


        Dim textBoxCell As DataGridViewTextBoxCell = New DataGridViewTextBoxCell
        textBoxCell.Value = "Turn Over Based On"
        Dim comboCell As DataGridViewComboBoxCell = New DataGridViewComboBoxCell()
        comboCell.Items.Add("Chip Transaction")
        comboCell.Items.Add("Win/Loss")
Help, I have tried in various ways instead with DataGridView if I can make.
Me.RadGridView1.ColumnCount = 2
Me.DataGridView1.ColumnCount = 2
Dim heterow0 As DataGridViewRow = New DataGridViewRow 
 
Dim textBoxCell As DataGridViewTextBoxCell = New DataGridViewTextBoxCell
textBoxCell.Value = "Turn Over Based On"
Dim comboCell As DataGridViewComboBoxCell = New DataGridViewComboBoxCell()
comboCell.Items.Add("Chip Transaction")
comboCell.Items.Add("Win/Loss")
Dim botonCell As DataGridViewButtonCell = New DataGridViewButtonCell
heterow0.Cells.Add(textBoxCell)
heterow0.Cells.Add(comboCell)
Me.RadGridView1.Rows.Add(heterow0)
Me.DataGridView1.Rows.Add(heterow0)
That is the form
[IMG]http://i54.tinypic.com/535o1t.jpg[/IMG]
http://es.tinypic.com/r/535o1t/7

1 Answer, 1 is accepted

Sort by
0
Accepted
Richard Slade
Top achievements
Rank 2
answered on 22 Dec 2010, 10:12 AM
Hello Manolo,

I think what you are looking for is a GridViewComboBoxColumn. Please take a look at the documentation at this link.

Let me know if you need more help
Richard
Tags
GridView
Asked by
Manolo
Top achievements
Rank 1
Answers by
Richard Slade
Top achievements
Rank 2
Share this question
or