Hi All,
Recently, I found a problem when using windows form datagrid control. I used DataGridTextBoxColumn to show data in datagrid and suddenly i found the following problem, which was not present in all machines;
If you set the ReadOnly property of the any DataGridTextBoxColumn, then on selecting the respective cell in the grid and refreshing the grid at all without doing any event (i.e. just select any cell in the column, and press any external buttton which refresh the datagrid to be blank), then thetextbox of the datagrid cell being edited at that timedoesn't disappears. Also this appear on some of the machines only. I found this error on the machines using Microsoft Windows XP Professional Version 2002 Service Pack 2. The machine is Dell Optiplex GX745 Intel(R) Pentium (R) D CPU 2.80 GHz,0.99 GB RAM.
Why it is happening, I could not understand. Even, I haven't derived any DataGridTextBoxColumn.
Any suggestions are most welcome!!!
This problem doesn't occur if you make DataGridTableStyle to read only. But my requirement was to allow editing in only some of the columns. So I Set DataGridTableStyle's ReadOnly = false and individually set the ReadOnly of the DataGridTextBoxColumns.
To overcome this problem I had to remove all the ReadOnly statements from DataGridTextBoxColumns and set the required settings in the data source (DataView in my case).
Regards,
Yudhbir S