Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Navigating DataView
Message
From
25/05/2005 15:52:28
Patty Solomon
Central Susquehanna Intermediate Unit
Milton, Pennsylvania, United States
 
 
To
All
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Title:
Navigating DataView
Environment versions
Environment:
C# 1.1
OS:
Windows XP SP2
Database:
MS SQL Server
Miscellaneous
Thread ID:
01017631
Message ID:
01017631
Views:
45
I'm unable to navigate to a new row in a grid when the DataSource is a DataView. The navigation is applied to the DataSet instead of the DataView.

What does the grid's DataSource have to be set to for the Navigation code to function correctly?

Sample of current code with explanation:

Form fields exist of types mmDataSet and DataView and are set in the CreatePrimaryDataSet method. The oChildBO.HookPostGetData method creates a DataView that keeps the order of the data correct as rows are added via the maintenance form...

dsChildData = ((CHILD_BO)oChildBO).GetRecordsByParentPK(this.CurrentPrimaryKey);
dvChildData = dsChildData.GetDataView("dvSortedChild", oChildBO.TableName);

In FormDataBindingChildren method, the grid's DataSource is set...

this.gridChildren.DataSource = dvChildData;

DataMember is not set on the grid.

I've verified the DataView exists in the DataSet. When a new record is added, the MMF framework does not recognize the grid.DataSource as a DataView.

After walking through the MMF code several times, I feel that the grid's DataSource is the issue. All suggestions are appreciated.

TIA,
Patty
Reply
Map
View

Click here to load this message in the networking platform