Bind textbox to tatatable, please help
-
Hi I have an untyped dataset with one datatable in it. The datatable is bound to a datagridview. I also have some textboxes that I want to bind to the datatable. Hello. When a user enters some values on a row in the datagridview I want these values to show in the corresponding textboxes. It should also be possible to type directly into the textboxes which should then update the corresponding row in the datatable/datagridview. Datagridview ------------ ID Name Age Datatable ------------ ID Name Age textboxID textboxName textboxAge I have tried getting this to work for a while but without luck, any help would really be appreciated
-
Hi I have an untyped dataset with one datatable in it. The datatable is bound to a datagridview. I also have some textboxes that I want to bind to the datatable. Hello. When a user enters some values on a row in the datagridview I want these values to show in the corresponding textboxes. It should also be possible to type directly into the textboxes which should then update the corresponding row in the datatable/datagridview. Datagridview ------------ ID Name Age Datatable ------------ ID Name Age textboxID textboxName textboxAge I have tried getting this to work for a while but without luck, any help would really be appreciated
You can attach each field of the datatable with nameofdataset.Tables[0].Rows[i].ItemArray[j] with the indexes i an j changing for the Rows and cells you want to change or read out