Fill dataset
-
Got my CustomRowEvent working.. able to fill my textboxes in my new form. but i think it's not the fastest or best way. i now use this line of code :
t075_BORGTOCHTNUMMER_1TextBox.Text = Grid["t075BORGTOCHTNUMMER1DataGridViewTextBoxColumn", RowIndex].Value.ToString();
this work just great.. really.. BUT... if you got about.. 60 textboxes.. it's kinna like a lot of work.. so i was thinking.. if i change my fill command with something like this..:this.dBANBM_T075_BORGTOCHTTableAdapter.Fill(testdb1DataSet, Grid, RowIndex);
he give's me the error that Grid and RowIndex does not excist in my current contex.. however.. i use the following codepublic dborgtocht(testdb1DataSet DSet, DataGridView Grid, int RowIndex) { InitializeComponent(); PopulateTextBoxes(testdb1DataSet, Grid, RowIndex); }
so you really should think that he should be able to find them.. hope i explained enough now.