Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Windows Form Coodinating Grid and Textboxs
Message
 
À
Tous
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Titre:
Windows Form Coodinating Grid and Textboxs
Divers
Thread ID:
00876460
Message ID:
00876460
Vues:
56
Sorry, this is probably really simple, but I don't seem to have it figured out.

I have build a form that contains a datagrid tied to DataSet11.VersionData in the Datasource. The grid is pulling data from a SQL Server table. I also have to text boxes for the collection of big text (memo) entries that aren't not easily typed into the grid. So I want the controls to stay in sync as I move the record pointer in the grid.

When the form first loads, the first record in the grid has it's data in the text boxes. In the main textbox properties, I set the Databidings (expanded out) Text property to DataSet11-versionData.ModificationText (which is the field). But if I move to another record in the grid, the data in the text box does not change.

I added a next/previous set of buttons and when I use these to move from record to record, the data in the text box is updated, below is the code I have in the next button:
Me.BindingContext(DataSet11, "VersionData").Position += 1
In the Grids Navigate code I put me.Update(), but that didn't do anything.

Thanks for any advice.

Kirk
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform