I have an unusual situation and am unsure how to debug it. I am trying to delete a row from an UltraGrid. I have several grids in my project and all but two will allow me to delete rows. All grids use the exact same formatting routine. The datasource for all grids are built at runtime. the two that will not let me delete rows differ in that they contains many child bands.
The odd thing is that when I call UltraGrid,Row,Delete(false), it returns true. I get no error messages. But checking the value of UltraGrid.IsDeleted on the very next line shows the row is still there. Also, the row is still visible in the UltraGrid. This is something specific to this program as when I tried to create a stripped down sample program to send, taking all code from the original project, I could not reproduce the issue.
I have allowdeletes turned on in both the Datasource and the Grids, like I said, these exact same initialization code is used for all grids, only 2 exhibit this issue.
Any suggestion of how to debug?
Hello,
You could try handling the "BeforeRowsDeleted" event and see if the event is firing, and if so, what rows are passed into the event args.
Did you try changing the datasource of those two grid's to be the same as the grid which behaves right?
Did you try loading an already saved layout of the grid which behaves as expected?
I wanted to know if you were able to solve your issue based on these suggestions or you still need help. Please let me know.
Yes, that worked perfectly. I've submitted several issues and you guys have come through once again. That's why I love Infragistics...
I do have another problem, this is with styling. This is my first attempt to use appstyling, so im sure it is quite easy. Let me play around with it a little and research on my own first, if I can figure it out, i'll pass it along.
Thanks again!!
Jay
Jay,
Thank you for the kind words!
I will give my best in order to answer all of your questions regarding AppStylist, please do not hesitate to create threads.
for now, I have everything up and running as intended. You guys are awesome!!!