0
Gridview 행을 굵게 만드는 방법은 무엇입니까? 나는 그것을 할 수있는 아래의 코드를 작성했지만 나는 오류asp.net의 gridview
Error 2 Cannot implicitly convert type 'int' to 'bool'
내 코드
protected void ddlread_SelectedIndexChanged(object sender, EventArgs e)
{
foreach (GridViewRow row in GridView1.Rows)
{
if (row.RowType == DataControlRowType.DataRow)
{
if (((CheckBox)row.Cells[0].FindControl("chkselect")).Checked == true)
{
if (ddlread.SelectedIndex = 1)
{
//GridView1.RowStyle.Font.Bold.ToString();
row.Font.Bold.ToString();
}
else
{
}
}
}
}
}
일을. 내가 그것을 놓쳤다는 것을 믿을 수 없다. –