I would need to edit the content of a bound and filtered datagridview programmatically.
I tried following, but did not work:
DataGridView1.Rows(rcly).Cells(33).Value = "False"
DataGridViewRow has an
DataBoundItem. You can access a
DataRowView which has a
ReadOnly attribute called
Row which is the DataRow you want to edit.
I don't know if you can edit attributes of the
DataRow since its ReadOnly. If you can't edit it then you will have to access the Row by using
Dim TheRow as DataRow TheRow = DataGridView1.Rows(rcly).DataBoundItem.Row
To edit values in the
TheRow.Item("ColumnName") = "Your new Value"
You can also access the Item by
Index, but I would highly recommend using the name.