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

MultiComboBoxElement

2 Answers 125 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Gilberth
Top achievements
Rank 1
Gilberth asked on 20 Aug 2009, 07:14 PM
Hello again, I found an error, is as follows, have 2 columns in a DataGrid control multicombobox in the first 2 columns show the control in the datagrid multicombobox and the second control sample 3 columns, the error occurs when entering edit mode, I explain the steps:

multicombobox first entrance, is running normally, in the event CellBeginEdit admission the following code:

CType (RadGVBitacoras.ActiveEditor, RadMultiColumnComboBoxElement). DropDownSizingMode = SizingMode.UpDownAndRightBottom  
CType (RadGVBitacoras.ActiveEditor, RadMultiColumnComboBoxElement). ValueMember = "Code"  
CType (RadGVBitacoras.ActiveEditor, RadMultiColumnComboBoxElement). DisplayMember = "Country"  
CType (RadGVBitacoras.ActiveEditor, RadMultiColumnComboBoxElement). Data_bitacora.dataset.Tables DataSource = ( "mars_pais) 
CType (CType (RadGVBitacoras.ActiveEditor, RadMultiColumnComboBoxElement). EditorControl, RadGridView). Data_bitacora.dataset.Tables DataSource = ( "mars_pais)  
CType (CType (RadGVBitacoras.ActiveEditor, RadMultiColumnComboBoxElement). EditorControl, RadGridView). Columns (0). Width = 100  
CType (CType (RadGVBitacoras.ActiveEditor, RadMultiColumnComboBoxElement). EditorControl, RadGridView). Columns (1). Width = 300 

this code is executed to perfection, after having entered the first multicombobox, I will enter the second column which contains the second multicombobox, as I said earlier this control contains 3 columns and have the following code on the previous event:
              
CType (RadGVBitacoras.ActiveEditor, RadMultiColumnComboBoxElement). DropDownSizingMode = SizingMode.UpDownAndRightBottom 
CType (RadGVBitacoras.ActiveEditor, RadMultiColumnComboBoxElement). ValueMember = "Code" 
CType (RadGVBitacoras.ActiveEditor, RadMultiColumnComboBoxElement). DisplayMember = "Department / State
CType (RadGVBitacoras.ActiveEditor, RadMultiColumnComboBoxElement). Data_bitacora.dataset.Tables DataSource = ( "mars_departam as d, as mars_pais p")
CType (CType (RadGVBitacoras.ActiveEditor, RadMultiColumnComboBoxElement). EditorControl, RadGridView). Data_bitacora.dataset.Tables DataSource = ( "mars_departam as d, as mars_pais p") 
CType (CType (RadGVBitacoras.ActiveEditor, RadMultiColumnComboBoxElement). EditorControl, RadGridView). Columns (0). Width = 100 
CType (CType (RadGVBitacoras.ActiveEditor, RadMultiColumnComboBoxElement). EditorControl, RadGridView). Columns (1). Width = 100 
CType (CType (RadGVBitacoras.ActiveEditor, RadMultiColumnComboBoxElement). EditorControl, RadGridView). Columns (2). Width = 300 

this code sends me an error in the last line tells me that the control contains 3 columns but not 2, not recognized by the third, although I corrected the table which has 3 columns basa if, in my opinion this is wrong occasions because the control contains 2 columns of another multicombobox in the first column of my datagrid and glass that the error only occurs if the first entry in Edit mode in multicombobox that contains 2 columns, but only if that income contains 3 columns works as if nothing happened, I hope I can help with this error and thank you for all the help I provide.

Edit: Giving hope to understand, I do not speak English well.

2 Answers, 1 is accepted

Sort by
0
Gilberth
Top achievements
Rank 1
answered on 25 Aug 2009, 05:16 PM
There any way to fix this?, I understand the mistake that I feel you, if I want to go back to trying to explain the error that I get, thanks again.
0
Gilberth
Top achievements
Rank 1
answered on 26 Aug 2009, 06:24 PM
I solved this error by placing in the third column multicombobox because I have no more data to display in this multicombobox, I created a temporary column which become invisible in that the multicombobox this because this just want to show 2 columns, With this solution the 2 columns of datagrid containing multicombobox work correctly, a column containing a multicombobox of 2 columns and one column containing a multicombobox 3 columns. This is a trick or a temporary solution, but should resolve this error and again thanks for everything.
Tags
GridView
Asked by
Gilberth
Top achievements
Rank 1
Answers by
Gilberth
Top achievements
Rank 1
Share this question
or