databinding datagrid to combobox and textbox

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

My problem is databind datagrid to combobox.
i want to click to datagrid and i want to see that record at combobox and
texboxes after that i want to change combobox and texboxes and i want to
change the datagrid record


*******FORM LOAD BIGIN
Con.Open()
Datagrid1.DataSource = card.cardDS.Tables("AMBAR_AYARLARI")

txtcardname.DataBindings.Add("Text", card.cardDS.Tables("AMBAR_AYARLARI"),
"card_name")

cmbpersonalname.DataBindings.Add("Text",
card.cardDS.Tables("AMBAR_AYARLARI"), "Personal_name")

cmbcity.DataBindings.Add("Text",
card.cardDS.Tables("AMBAR_AYARLARI"),"city_name")

Con.Close()
 
thanks you for your help
this is very usefull for textboxes
but i want to bind it to combobox also
can i write like this for it


combobox1.DataBindings.Add("Text", dt,"city_name")
 
Back
Top