Unable to cast object of type 'System.Data.DataSet' to type 'System.Data.DataView'. the error was occured in the following statement when the page is loaded for the first time. Dim oDataView As DataView = datagrid1.DataSource