D
Dave Churvis
Hello all,
I'm having the strangest issue with an application I'm building. A
little background: we've been working on this application for a while
and have used the DataGrid extensively throughout the project. On
many of our forms, there is a DataGrid with a few custom column
styles. Most often, these are a DataGridTextBoxColumn. There are a
number of these that we have set to read only.
Now for my problem. On one of the machines in our lab, whenever we
remove an item from the DataGrid's underlying data source and refresh
the dataset, if the focus had been on a read-only column, the text box
still remains, showing the old value. As soon as we click into the
text box, the value updates to show the current information. What's
odd is that this only happens on the one machine! Every other machine
works correctly; as soon as we click the Remove button, the DataGrid
gives up focus and hides the text box properly.
I delved deeper and found that apparently the ConcedeFocus and Abort
methods of the underlying DataGridColumnStyle are not being called at
all.
So if anyone knows of a workaround, I'd greatly appreciate it!
Thanks in Advance,
Dave
I'm having the strangest issue with an application I'm building. A
little background: we've been working on this application for a while
and have used the DataGrid extensively throughout the project. On
many of our forms, there is a DataGrid with a few custom column
styles. Most often, these are a DataGridTextBoxColumn. There are a
number of these that we have set to read only.
Now for my problem. On one of the machines in our lab, whenever we
remove an item from the DataGrid's underlying data source and refresh
the dataset, if the focus had been on a read-only column, the text box
still remains, showing the old value. As soon as we click into the
text box, the value updates to show the current information. What's
odd is that this only happens on the one machine! Every other machine
works correctly; as soon as we click the Remove button, the DataGrid
gives up focus and hides the text box properly.
I delved deeper and found that apparently the ConcedeFocus and Abort
methods of the underlying DataGridColumnStyle are not being called at
all.
So if anyone knows of a workaround, I'd greatly appreciate it!
Thanks in Advance,
Dave