Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Master/Child DataGrids... HELP! :)
Message
De
25/04/2004 01:47:45
 
 
À
25/04/2004 00:29:14
Information générale
Forum:
ASP.NET
Catégorie:
ADO.NET
Divers
Thread ID:
00897937
Message ID:
00897969
Vues:
16
Thank you! The AllowNavigate=False fixed it. Now when you tab off the last field on a row it moves to the first field of the next row, like it should. I added that site to my growing collection of .NET resource Favorites. I need to organize them some day. :)

BTW, if you ever do any ASP.NET development, I recently ran across this site that is the best ASP.NET Primer/Tutorial/Resource I've found.

http://authors.aspalliance.com/aspxtreme/

-----
Lee


>Lee,
>
>Here's what I did to make it work (I use C# and not VB.NET, though this should be pretty easy to convert...
>
>DsTest.Relations.Add("TableRelation", DsTest.Tables["Table1"].Columns ["ssn"], DsTest.Tables["Table2"].Columns["ssn"]); // similar to what you had
>
>dataGrid1.DataSource = DsTest.Tables[0]; // I don't use setdatabinding
>dataGrid1.AllowNavigation = false; // should fix the navigation issue
>
>dataGrid2.DataSource = DsTest.Tables[0];
>dataGrid2.DataMember = "TableRelation";
>
>(Because I had to create some data, I just created two simple datatables, related by SSN).
>
>I could not get SetDataBinding to work on the 2nd grid...the relation wouldn't refresh correctly. Not sure why, but when I switched to datasource and datamember, it worked fine.
>
>The 'allownavigation' should take care of the navigation issue on the top grid.
>
>Also....here's a site that might be helpful for you...this one has saved my bacon a million times...
>
>http://www.syncfusion.com/FAQ/WinForms
>
>There is a ton of sample code up there.
>
>Hope this helps!
>Kevin
-----
Lee Perkins
TigerBase Technologies

"Lee is one that would plug his brain into the internet, if he could, and STILL scream for more" - Very good friend of Lee's
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform