Swaping the Selected Grid Column

Hi, In my task, i have a syncfussion grid, assume it, it contains 3 rows and 5 columns with data. if i copy the data from the first colum and second column of the same row in the grid, after that when i past in the notepad it should paste like second column value first and first column value second(simply say swaping the first and second column). If select the First column of the first row and second column from the second row, it should''t swap, same condition if i select all the rows and columns. Kindly give the possible way to solve this kind of problem. Regards, PADMANABHAN.

1 Reply

AD Administrator Syncfusion Team April 6, 2006 01:31 PM UTC

Hi Padmanabhan, The intent behavior can be achieved by getting the cell range in the ClipboardCopy event handler and then by swapping the range accordingly. Please refer to the attached sample that swaps the column using a Custom Sort. Regards, Calvin.

42818.zip

Loader.
Up arrow icon