In my application, there is need to convert my data grid to datatable, I am passing data table and data grid by reference.
here's my function.

```
public static void ConvertGridToTable(ref Datatable dt, ref Gridview grd)

```