views:

59

answers:

1

In my grid view i have link type column. as we cannot edit cell of such type i am displaying a text box if user select cell for editing. but my text box is unable read dot character. I checked "key pressed" and "text changed" events but events are not triggered for dot as a input.
EDIT: I can enter any character or symbol except dot.. ;(

I am displaying textbox on cell click event of gridview

if (DataGrid.Columns[e.ColumnIndex].GetType().Name == "DataGridViewLinkColumn")
{
txt_Data.Location    =   DataGrid.GetCellDisplayRectangle(e.ColumnIndex, e.RowIndex, false).Location;

txt_Data.Size        =   DataGrid.GetCellDisplayRectangle(e.ColumnIndex, e.RowIndex, false).Size;

txt_Data.Visible     =   true;
txt_Data.Focus();
}

And assigning a value to cell as

private void txt_Data_TextChanged(object sender, EventArgs e)
{
  DataGrid.CurrentCell.Value = txt_Data.Text;
}
A: 

(Not enough rep to comment)

Are you sure the 'dot' key on your keyboard is working?

RichK
ya man..I can enter dot in other cells
Royson
I can't seem to reproduce this error, sorry
RichK