Hello,  When I try add a DataGridViewComboBoxColumn I get the error:

DatagridViewComboBoxCell value is not valid

Can I help me?
Tranks


This is the code :

    Friend column_combo As DataGridViewComboBoxColumn = New DataGridViewComboBoxColumn()
....

            FbConnection.Open()

            dbDataAdapter = New FirebirdSql.Data.FirebirdClient.FbDataAdapter (SQL, FbConnection)
            dbDataAdapter.Fill(dbDataSet)

            Me.DGV.DataSource = dbDataSet.Tables(0)

......

            With column_combo
                .HeaderCell.Value = "  "
                .HeaderCell.Style.Font = New Font("Bookman Old Style", 8, FontStyle.Bold)
                .HeaderCell.Style.BackColor = Color.DimGray
                .HeaderCell.Style.ForeColor = Color.White
                .HeaderCell.Style.Alignment = DataGridViewContentAlignment.MiddleCenter
                .DataPropertyName = "CANTIDAD"
                .Name = "CANTIDAD"
                .HeaderCell.Value = "CANTIDAD"
                .DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleLeft
                .Visible = True
                .AutoComplete = True
                .ReadOnly = False
                .ToolTipText = "Cantidad"
            End With
            Me.DGV.Columns.Add(column_combo)

 


 
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Firebird-net-provider mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/firebird-net-provider

Reply via email to