Hi I am using the Gridview, to display some data. I have a tax filing status column, which I am giving it the values of the combo box from an enumeration, like the following.
When I the user changes the value in the combo box, I change the bound data of the grid. Then I refresh the templates of the grid.
Some of the time this works fine, but often enough, I get the following exception.
Object reference not set to an instance of an object.
Telerik.WinControls.UI.GridComboBoxCellElement.SetContent(). I walked through the code that I have in the cell value changed, and there is no issues there. Am I using the ComboBoxColumn wrong ?
- Erion
(gridViewTemplateTaxData.Columns["FilingStatus"] as GridViewComboBoxColumn).DataSource = Enum.GetNames(typeof(TaxFilingStatus));
When I the user changes the value in the combo box, I change the bound data of the grid. Then I refresh the templates of the grid.
Some of the time this works fine, but often enough, I get the following exception.
Object reference not set to an instance of an object.
Telerik.WinControls.UI.GridComboBoxCellElement.SetContent(). I walked through the code that I have in the cell value changed, and there is no issues there. Am I using the ComboBoxColumn wrong ?
- Erion