Apr 26, 2012, 1:58 PM
[CLOSED] Geting combobox value and/or text from code behind
Hello
On my grid, I have a row editor. In this editor I have 3 fields that have combobox editor.
I have to check in code behind that a year-month value have not been already added to my data.
On the select event I called a function that do the check.
I begin to get my editor like that:
after that, I do something like that :
So how handle that?
On my grid, I have a row editor. In this editor I have 3 fields that have combobox editor.
I have to check in code behind that a year-month value have not been already added to my data.
On the select event I called a function that do the check.
I begin to get my editor like that:
ColYear = grd.ColumnModel.Columns(8)
ColMonth = grd.ColumnModel.Columns(9)
cboYear = ColYear.Editor(0)
cboMonth = ColMonth.Editor(0)
(I try to change ColYear.Editor(0)
by ColYear.Editor.Primary
but it is the same.)after that, I do something like that :
INT_Year = cboYear.SelectedItem.Text
I get an error message :Object referenced is nothing.
means my cboYear combo is nothing.So how handle that?
Last edited by Daniil; Apr 27, 2012 at 8:59 AM.
Reason: [CLOSED]