E
Earl
I've got a datagridview with a bindingsource bound to a datatable. I've also
got a bunch of textboxes (on the same form) with their databindings set to
the datagridview (I'm not allowing edits in the datagridview). When I go to
add a new record, that is, by clearing the textboxes so the user may enter
what they wish, I need to ensure there is no binding between the textboxes
and the datagridview. So what I'm doing is setting the CurrentRow.Selected
property to false. This leaves the pointer and does not clear the textboxes.
I've never used much data-binding in the past, preferring to do this all by
hand, but I'd like to make this scenario work. My question is, do I *really*
have NO row now selected in the datasource and datagridview? I would think
that the bound textboxes would clear when I set the datagridview
CurrentRow.Selected to false.
got a bunch of textboxes (on the same form) with their databindings set to
the datagridview (I'm not allowing edits in the datagridview). When I go to
add a new record, that is, by clearing the textboxes so the user may enter
what they wish, I need to ensure there is no binding between the textboxes
and the datagridview. So what I'm doing is setting the CurrentRow.Selected
property to false. This leaves the pointer and does not clear the textboxes.
I've never used much data-binding in the past, preferring to do this all by
hand, but I'd like to make this scenario work. My question is, do I *really*
have NO row now selected in the datasource and datagridview? I would think
that the bound textboxes would clear when I set the datagridview
CurrentRow.Selected to false.