Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
115
How do i uncheck datagridview checkboxcell
posted

In my project, i am executing some queries for selected records(rows). Once the query completes i want to uncheck all the records. Please help me to complete my functionality. Here is the code i used to uncheck. But it is not working.

public void UncheckDataRow()
{
for (int j = 0; j < gridTrade.Rows.Count; j++)
{
GridRecord selectedRow = gridTrade.Rows[j];
int columnIndex = gridTrade.Columns["Checked"].Index;
selectedRow.Items[columnIndex].Value = false;
}
}

Parents
No Data
Reply Children
No Data