GridView的OnRowDataBound事件怎么没有啊

2024-12-25 09:35:42
推荐回答(2个)
回答1:

DataGridViewRow没有OnRowDataBound事件,只有RowsAdded事件,
实现方法与OnRowDataBound相同

private void dataGridView1_RowsAdded(object sender, DataGridViewRowsAddedEventArgs e)
{
DataGridViewRow row = (sender as DataGridView).Rows[e.RowIndex];

}

回答2:

有的啊