Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
140
WinGrid's DropDown cell loose text on mouseclick
posted

I have one wingrid bound to a BindingSource. The data are correctly shown in the grid at runtime.

One of the columns of the grid is a varchar key that need to be decoded in a lookup table. So, I have a second BindingSource containing a couple key+description from this table. The BindingSource can be bound to a dropdown or a combo (I tried both) and the control is used as an editor for the grid's column (the description is the displaymember, the key is the valuemember). All is ok and I can change the values using the dropdown combo.

A problem raise when I navigate the records of the grid using the mouse instead of the keybord: randomly, the cell containing the drop down show a null string instead of the correct value when I change the current row clicking with thw mouse on a different row. It happens this way:

  • I am on a row and the text shown in the dropdown column is correct
  • I change the current row clicking with the mouse on another row
  • The row that have lost focus now have the text disappeared in the dropdown column (why?)
  • I return to the previous row using only the keyboard and the text appear (is it only a wrong refresh problem?)

I tried different databases (mysq via odbc, access via oledb), different dropdown infragistics controls and binding methods (valuelist and editcontrol), but the bug is always there.

Is there a solution? 

Parents
No Data
Reply
  • 175
    posted

    The text disappear because its foreColor haven't been refreshed properly.I found that this bug appears only when the cell's data is from a value list.

    When you highlighting a row, the forecolor of the active row is white,means that the text's color is white. After you clicked another row, the forecolor of the former selected row should be changed to the black, but haven't. The forecolor becomes the same with the backcolor (both are white), so the text seems to disappear.


    I think it's a bug of version 7.3 .It doesn't happen in version 7.2 .

Children