i got 2 extra empty row above 2 original row result. why is this happening? check my code below, thanks!


Code:
 for (int i = 0; i <= RowCount ; i++)
                    {
                        IndicatorQuery = dataSet.Tables[0].Rows[i][0].ToString();
                      
                        OracleCommand command = new OracleCommand(IndicatorQuery, connection);
                        command.CommandType = CommandType.Text;
                        OracleDataAdapter dataAdapter = new OracleDataAdapter(command);
                        dataAdapter.Fill(dataSet);
                        dataGridView.DataSource = dataSet;
                        dataGridView.DataBind();
                        DropDownList ddlIndicator = (DropDownList)dataGridView.HeaderRow.FindControl("ddlIndicator");
                    }