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 Xin,
I'd probably handle the DragOver event of the grid and get the row the mouse is over and apply an appearance to it.
To get the row, you will first have to convert the X and Y in the DragOver into grid coordinates (they are in screen coords). So you would use the grid.PointToClient method for the this. Then you can get the row from the point. HOWTO:UltraWinGrid Mouse Position and Row Identification
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?
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?