Filling data in DataTable using OracleDataAdapterHi Guys,
I Am filling data in a datatable using OracleDataAdapter. I am assigning this datatable to gridview The code is below,
OracleDataAdapter dAdapter = new OracleDataAdapter(cmd);
DataTable dtReslt = new DataTable();
The issue is , the first time when i click the particular even where above code fires, i get an issue "Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index" . But when i click again , the data loads correctly. Some times it does not work at second click but works at third click.
I am getting the issue exactly in the code "dAdapter.Fill(dtReslt); "
Help me to resolve.