tags:

views:

42

answers:

1

How can implement reordring in winforms datagridview by using the feature of drag and drop?

A: 

for asp.net you can use a nice jQuery table drag-n-drop plugin. As DataGridView is rendered as table. Download latest jquery file and include it in your page. Download drag and drop plugin file and include it after jquery file.

<asp:DataGridView id="myGrid" .....>
..............
</asp>

<script type="text/javascript">
    $(document).ready(function(){
        $("<%= myGrid.ClientID %>").tableDnD();
    };
</script>

ps: plugin's home page contains fantastic examples

TheVillageIdiot
Hello Dear not in asp.net i will do in windows application
Amit Dhall
Please specify questions properly. I suspected this so I put "for asp.net.." in the beginning.
TheVillageIdiot