Hi,
I am using a CreationFilter to display a CheckBox on every UltraGridRow. I am unable to position it in such a way that the whole checkBox is visible.
Please see screenshot of the issue. Any help is appreciated.
Thanks
Sangeetha
Sorry... my previous post displays the wrong screenshot. The below is the right one.
Hi Sangeetha,
May I suggest using an unbounded column that you insert as the first one in each bound, you can also hide the row selector and you will end up with the same result (i.e. a checkbox at the beginning of each row) The solution I’m proposing will simplify your code since you don’t have to deal with the creation filter. You also don’t have to worry about saving the check status of each row somewhere, it wil be stored as the cell value for the inserted column.
I put together a small sample to show how to achieve this. Please take a look and let me know how this work for your case. If for some reason this approach does not work for your case, please send me the code you are using in the creation filter and I’ll be glad to take a look and figure out the reason for the drawing problem
Regards,
Ammar Zuriki
Senior Manager
NetAdvantage for Windows Forms
NUCLiOS – INFRAGISTICS iOS controls
TestAdvantage for Windows Forms, HP, IBM
TestAdvantage for WPF (HP)
Ammar,
Also when CreationFilter is implemented, RowPin although visible, does not respond to user click and pin the row.
Sangeetha,
pinning rows seems to be working fine in the sample application I sent, I just had to turn on the feature so the button will show up and I was able to pin/unpin rows:
I just added this to Form_Load event handler:
ultraGrid1.DisplayLayout.Override.FixedRowIndicator = Infragistics.Win.UltraWinGrid.FixedRowIndicator.Button;
ultraGrid1.DisplayLayout.Override.RowSelectorNumberStyle = Infragistics.Win.UltraWinGrid.RowSelectorNumberStyle.VisibleIndex;
If this is not working on your end please update the sample app and send it back.
Ammar
Hi Ammar,
Modified your sample to show the problem. Please see attached zip.
The issue with the pin button seemed to be caused by the sizing of the textUIElement, basically the code was expanding the TextUI Element and as a result the pin button was going under the text element so it became not clickable (the only reason it shows up was because the text UI background was transparent)
I fixed the filter in the attached sample and also added a button to show 1000 row to verify that the number are visible. If you want to turn off the active row indicator image (the black triangle indicating the active row) you can just set:
ultraGrid1.DisplayLayout.RowSelectorImages.ActiveRowImage = null;
Please take a look and let me know what do you think.
Regards
You forgot the attachment. Could you please attach it.
I am good. Everything works great. Please go ahead and close the ticket.
I'm glad the solution worked. Do you have any further question on this case? if not, may I close this ticket?
Thank You very much for your help. This works perfectly.
sorry, here is the attachement