Thanks Clay. What I did is
case GridRangeInfoType.Cols:
for(int i=range.Left;i<=range.Right;i++)
{
Console.WriteLine(i);
}
break;
If hold Ctrl key, then use mouse select col1, col2 and col4, then right-clike the mouse while still holding the ctrl key, call a method in my contextmenu with the above lines, I will get
2
3
but no 4.
If I hold shift Key before I right click the mouse, i will get
2
3
4
Seems the column is de-selected if I right click the col even holding Ctrl key, but ok with shift key. Is there a cure for it?
Thanks
>I may be missing what steps you are taking, but that code seems to be working for me in this little sample.
>
>
WindowsApplication16_9572.zip
>
>