GridView: System.FormatException: Input string was not in the correct format

Status
Not open for further replies.

machado

New Member
Messages
19
Reaction score
0
Points
0
GridView:

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:

adamparkzer

On Extended Leave
Messages
3,745
Reaction score
81
Points
0
You may be interested in posting this question in the Programming Help section for better responses.
 

machado

New Member
Messages
19
Reaction score
0
Points
0
You may be interested in posting this question in the Programming Help section for better responses.

Maybe next time :)

Looks like the problem is when I use "backcolor=white" instead "backcolor=#FFFFF".


Weird, maybe mono project sintax?
 
Status
Not open for further replies.
Top