Hi
I met a new problem when I am using ultragrid.
I can move , drag and drop a row to any position in a ultragrid, However, I also want there is a hightlight when I am draging the row so that it is more clear that where will I put this row to. for example, there will be a line at the row where I am going to drop.
Is there any way to realise that?
Thanks,
Xin
Hi,
What kind of dragging are you doing? Is this a standard drag and drop external to the grid? Like you are calling StartDrag one some other control and dragging over the grid?
Or are you dragging something in the gird using the built-in support like moving a column?
Either way, I can't immediately think of any reason why the grid should prevent appearances or row spacing to take effect while the operation is occurring.
Do the appearances show up after the drag operation is complete?
I can't get changes to Appearances to take effect while the grid's drag events are firing. I also can't see my changes to the RowSpacingBefore and RowSpacingAfter take effect.
Can you confirm that is by design? Is there any way to get those events to fire wile the drag/drop events are going on?
It depends on what version of NetAdvantage you are using and whether or not you chose to install the samples when you installed NetAdvantage. But the samples are usually in a folder something like this:
...\Samples\WinTree\CS\UltraTree Drag and Drop CS
hi, i need something similar but i can not find the sample, i need something like draw a line between one field to another to simulate like a relation between two tables.
Thanks
Hi Xin,
There's nothing built-in to the grid to do that. You could draw the line yourself using a DrawFilter, though. There's a sample of something very similar for the WinTree control. It's call the WinTree Drag and Drop sample. The samples install with the NetAdvantage SDK.