Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
DotNet
acad.assignment.mngr
academic
adonet
aspnet
aspnet.announcements
aspnet.build.controls
aspnet.caching
aspnet.datagridcontrol
aspnet.mobile
aspnet.security
aspnet.webcontrols
aspnet.webservices
clr
compactframework
component_services
datatools
distributed_apps
drawing
faqs
framework
framework.wmi
general
internationalization
interop
languages.csharp
languages.jscript
languages.vb
languages.vb.controls
languages.vb.data
languages.vb.upgrade
languages.vc
languages.vc.libraries
myservices
odbcnet
performance
remoting
scripting
sdk
security
setup
vjsharp
vsa
webservi.enhancements
webservices
windowsforms
windowsforms.controls
winforms.databinding
winforms.designtime
xml
  
 
date: Sat, 21 Jan 2006 13:01:02 -0800,    group: microsoft.public.dotnet.datatools        back       


Navigation in grids   
Please, can anyone tell me how can I know which table is currently being 
showed in a DataGrid, after the user has navigated?

The DataSource points to the main table, but when it has foreign keys 
constraints (and AllowNavigation is tru of course), and the parent table also 
has relationships with other table, the user can navigate forth and back, 
without the program knowing in which table the datagrid is in a given moment.

i didn't see any property that tells if the user is navigating back or 
forth, all I know is that the Navigate event is produced whenever the user 
navigates.

I'll appreciate whatever help you can give me...

-- 
Thanks in advance

Rafael
date: Sat, 21 Jan 2006 13:01:02 -0800   author:   Rafael

RE: Navigation in grids   
Hi Rafael,

If I understand your question correctly, I think that what youare lookin for 
is the DataMember property of the DataGrid.

The DataMember property changes to the name of the relationship currently 
being navigated when a related table is displayed in the DataGrid control.

Hope this helps,
Norrie.



"Rafael" wrote:

> Please, can anyone tell me how can I know which table is currently being 
> showed in a DataGrid, after the user has navigated?
> 
> The DataSource points to the main table, but when it has foreign keys 
> constraints (and AllowNavigation is tru of course), and the parent table also 
> has relationships with other table, the user can navigate forth and back, 
> without the program knowing in which table the datagrid is in a given moment.
> 
> i didn't see any property that tells if the user is navigating back or 
> forth, all I know is that the Navigate event is produced whenever the user 
> navigates.
> 
> I'll appreciate whatever help you can give me...
> 
> -- 
> Thanks in advance
> 
> Rafael
date: Mon, 13 Mar 2006 07:45:38 -0800   author:   Norrie

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us