sony peter

sony peter

  • NA
  • 3
  • 38.4k

WPF application for insert, update and delete rows to a database - binding

Oct 12 2010 2:34 AM

I have a WPF application for insert, update and delete rows to a database. I am using LinQ to SQL C# as the code behind. I have applied binding to the textboxes and the datagrid.
Is there a way that I can avoid statements like
cust.FirstName = Textbox1.text;
cust.LastName = Textbox2.text;
by using binding. When I avoid these statements, null values are inserted into the database
 
please help
 
 

Answers (1)