I am using Sheridan Data Widgets 3.12.
This is my problem. I create the grid in the method InitColumnProps. Then the UnboundReadData method loads the data from the row buffers. There are two columns. One column is a checkbox. ( The command is .Style = ssStyleCheckBox ).
Here is the problem. I make my pick by clicking on the checkbox. When I move thru the grid using the scroll bar or even when I click around on the grid, the grid will run the UnboundReadData method each and every time I move thru the grid. As a result, the checkbox that is checked is instantly unchecked because the UnboundReadData method runs again and loads the grid with data from the row buffer.
What I need to do is have the user move thru the grid and click on different checkboxes. And I need those choices to stay. Unless of course if the user decides to uncheck something.
So, how do I do this?
It's been a while since I used the DataWidgets grid. But as I recall, UnboundReadData is for when the grid is in Unbound mode. This means that grid will never store any data you apply to it.It's up to you to store the data in some structure behind the scenes and poulate the grid from that data.
I used this code before
Private Sub SSOleDBGrid1_InitColumnProps () SSOleDBGrid1.Columns (0) = SSOleDBDropDown1.hwnd .DropDownHwnd End Sub
which is similar in its infragistic 2041 for windows form
thanks.
Rolando,
I am not sure what the code provided does though I assume it is related to adding a drop down to a grid cell and you can use the following help topic to do this with the Windows Forms UltraGrid:
http://help.infragistics.com/doc/WinForms/Current/CLR4.0/?page=WinGrid_Using_WinComboEditor_inside_WinGrid.html
Let me know if you have any questions with this matter.