Hi Riyan,
How about declaring an array and looping through the elements. like:
Dim array As String() = New String(gridview.Rows.Count - 1) {}
For i As Integer = 0 To gridview.Rows.Count - 1
array(i) = gridview.Rows(i).Cells(0).Text
Next
Hope this helps !! :)
Regards,
Praneet