Hello,
I'm quite new to Infragistics programming/forum, so "hi there!" to all!
I encountered a problem when creating a WinGrid, wanting the user to have the ability to move GridRows via DragDrop.
The "Drag and Drop Strory" functions well, but I would like to have kind of an indicator, to show the user where the UltraGridRow would be inserted, just like the one when moving columns (a red arrow).
How could I achive this? Is there any prossibility to do this the "infragistics way", or do I have to draw the indicator on my own?
Thanks in advance,
Hans.
Hello vrn,
For those specific lines of code, the error is a result of the property syntax. The properties shown are using a shortened form from C# 3.0 and later. With C# 2.0, you would use the complete property definition with a backing private field like this:
private GridRowDropLinePositionEnum _dropLinePosition;
internal GridRowDropLinePositionEnum dropLinePosition{ get { return _dropLinePosition; }
set { _dropLinePosition = value; }}
Hope that helps, and if you need a converted sample please let me know.
Hi Aaron, thanks for sharing this code. I had difficulty using it because we are still using VS2005 as corporate standard. Secondly there were some references to Linq that I had to remove. Finaly, once I got the project into VS2005, I getting compilation errors on these three lines in DragDropRowDrawFilter
internal GridRowDropLinePositionEnum dropLinePosition { get; set; }
public Color DropLineColor { get; set; }
public int DropLineWidth { get; set; }
For each get/set the compiler is complaining
Error 1 'WNG_DragAndDropRowIndicator.DragDropRowDrawFilter.dropLinePosition.get' must declare a body because it is not marked abstract or extern
Error 2 'WNG_DragAndDropRowIndicator.DragDropRowDrawFilter.dropLinePosition.set' must declare a body because it is not marked abstract or extern
Mind fixing it and reposting? Or suggest how to fix it?
Thanks!
Hi All,
For those of you who are interested in a sample for implementing this, it is attached to this post. Happy Coding!
Hi vrn,
sorry, but right now I'm quite busy, as you could tell from my late answer to your question, so I can not completly check for the code you want. But: Just check the "UltraTree - Drag and Drop" sample, it kinda helped me a lot, I guess you could get the solution from this example, too. If you still have problems, just tell, I will then have another check on my code and answer to you asap.
Best regards,
Hans, would it be possible to share the code you created for this? I am new to this whole creation/draw filter functionality.