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
210
Drag and drop Problem.
posted

I created a wingrid sample according to the Knowledge Base Article: KB010086 .
How to drag and drop rows in a single WinGrid.

When Drag it to the blank row, the record will be deleted..why?

 record 8 deleted.?

 and when I drag the record and drop on the 1st record, the record will be invisible.
but when i sort it, the record will comes out again.

 

hmm..?
hope someone can help me about this ...
thanks...

Parents
No Data
Reply
  • 469350
    Offline posted

    The sample code in the article does not have the TemplateAddRow turned on. The row probably should not be disappearing, but what exactly would you expect to happen here? The row cannot be moved after the TemplateAddRow?

    Try putting a breakpoint on the call to Rows.Move and see what index you are passing in. Maybe the index is invalid, in which case, the Move method should probably be raising an exception, rather than simply losing the row.

Children
No Data