I have an UltraWinGrid which has the column of checkBox type. I want the row is selected by only the checkBox clicked. Furthermore, user can select more than one row by clicking related checkboxes instead of drag selection.
But when I use SelectTypeRow= Single or SingleAutoDrag, I cannot select one than one row programmatically. If I use SelectTypeRow=Extended or SelectTypeRow=ExtendedAutoDrag, in this time I let the user can select more row using drag selection which is not desired.
Hi,
There's no way to tie selection to a checkbox like this. But you can simulate it and the user will never know the difference. :)
I threw together a quick sample project demonstrating how to do this. The sample maintained a List of the Checked Rows and also applies an appearance to each checked row just as if the row were selected - even though it's really not.
Thank you so much for your post, it's so useful. But, when I thought I was solving the problem, I faced with another problem about AppStylist isl file that I used to design the grids in the project. I think the isl file overrides some appearances used for changing the unchecked row appearences.
If I disable the UseAppStyling property, everthing ok. Otherwise, there is no problem on changing the checked row property. But If I uncheck a row, the appearance of the related row does not affect the changing until another row is clicked. Another row is clicked, the previous row appearance is ok. So interesting:(
P.S. In .isl, The grid "Resolution Order" is "ControlThenApplication"