besmart2000
Active member
- Joined
- Feb 18, 2007
- Messages
- 25
- Programming Experience
- 1-3
Hi
I have a form with bindingsource ,biningnavigator and bound textboxes generated using VS2005 wizard.
I want to use the same textbox controls for entering search criteria , by writing code in a command button control.
The problem:
When i focuse on textbox bound to primary key field,I can't leave the textbox control an i should enter a value, but really i want to let it blank (null) to be out of search criteria.
The Question:
how can I let the Textboxes relaxed for all PK constraints, and leave them blank for search.
I used :
MyTable.DataSet.EnforceConstraints = False , but it has no effect.
Thanks
I have a form with bindingsource ,biningnavigator and bound textboxes generated using VS2005 wizard.
I want to use the same textbox controls for entering search criteria , by writing code in a command button control.
The problem:
When i focuse on textbox bound to primary key field,I can't leave the textbox control an i should enter a value, but really i want to let it blank (null) to be out of search criteria.
The Question:
how can I let the Textboxes relaxed for all PK constraints, and leave them blank for search.
I used :
MyTable.DataSet.EnforceConstraints = False , but it has no effect.
Thanks