GridView:
This grid is filled by int's and char's:
Why am I getting this error? In my PC works fine..
Code:
<asp:GridView ID="GridView1" runat="server" CellPadding="4" ForeColor="#333333"
GridLines="None">
<RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
<PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
<SelectedRowStyle BackColor="#E2DED6" ForeColor="#333333" />
<HeaderStyle BackColor="#5D7B9D" ForeColor="White" />
<EditRowStyle BackColor="#999999" />
<AlternatingRowStyle BackColor="White" ForeColor="#284775" />
</asp:GridView>
This grid is filled by int's and char's:
Code:
String strSQL = "SELECT * FROM Filmes;";
MySqlDataAdapter myDataAdapter = new MySqlDataAdapter(strSQL, connectionString);
DataSet myDataSet = new DataSet();
myDataAdapter.Fill(myDataSet, "mytable");
//encher o gridview1
GridView1.DataSource = myDataSet;
GridView1.DataBind();
Why am I getting this error? In my PC works fine..
Last edited: