Thanks a lot!
That works well.
However, when I start typing without clicking on the cell first, right after the first number typed, the cursor is reset to the beginning of the line. Hence, if I type in "12", "21" will be shown.
Could you tell me how to fix this?
Thanks
Raymond.
>You can handle the CurrentCellControlGotFocus event. In the handler, get the style for the cell and transfer any style.CurrencyEdit properties that you are using to the cell control.
>
>
>private void gridControl1_CurrentCellControlGotFocus(object sender, System.Windows.Forms.ControlEventArgs e)
>{
> GridCurrencyTextBox tb = e.Control as GridCurrencyTextBox;
> if(tb != null)
> {
> GridCurrentCell cc = this.gridControl1.CurrentCell;
> GridStyleInfo style = this.gridControl1[cc.RowIndex, cc.ColIndex];
> tb.CurrencySymbol = style.CurrencyEdit.CurrencySymbol;
> //set whatever other style.CurrencyEdit properties you need
> }
>}
>