日期:2014-05-18 浏览次数:21007 次
    protected void DataGridView_RowDataBound(object sender, GridViewRowEventArgs e)
    {
        try
        {
            if (e.Row.RowType == DataControlRowType.DataRow)
            {
                e.Row.Cell[2].Text= (Convert.ToInt32(e.Row.Cell[0].Text)*Convert.ToInt32(e.Row.Cell[1].Text)).ToString();
            }
        }
        catch (Exception ex)
        {
        }
    }