Hey guys,
I have a grid with a column that has its editor set to DropDownValidate.
The data type of the column is int.
The problem is when I try to copy text between cells of this column, the Error event fires twice with the following error messages:
Error performing Paste operation. Further information: Unable to convert the value 'MW1610-4' to the column's data type: Value could not be converted to System.Int64.
------------------
Error performing Paste operation. Further information: Specified cast is not valid. So I'm assuming that the grid tries to set the value to the column (the underlying object) instead of setting the value in the combo box and then grab the value of the item selected and set it to the underlying object.
Any help would be appreciated!
Thanks!
What version are you using? Do you have the latest Hot Fix? This sounds like an issue that was recently fixed.
version: 8.1.20081.1000
I think I'm running a version behind. What's the latest version, could you provide a link please?
I figured out a work around though:
public void paste_Click(object sender, System.EventArgs e) {
//If the editor of the cell is set to DropDownValidate, the value will be set in the combo box instead of the cell, since the underlying object may have a type different than string (text) if (Grid.ActiveCell.Column.ValueList != null && Clipboard.ContainsText()) { UltraCombo comboBox = Grid.ActiveCell.Column.ValueList as UltraCombo; comboBox.Text = Clipboard.GetText(); Grid.ActiveCell.SetValue(comboBox.Value, true); } else Grid.PerformAction(UltraGridAction.Paste);
}
THANKS !
I think so. You can download the latest Hot Fixes here: My Infragistics Keys and Downloads - Download Anything and Everything You Own
Ok I just installed 8.2.20082.1000 and I have the same issues,
is there a newer version?
thanks