J
Jason L James
I have a defaultview of a data table
in a typed dataset. When I first populate
a tree view with the contents of the dataset
the records are in the correct sort order.
After adding a new record to the dataset, and
then refreshing the draw tree routine, the new
record is not in the correct sort order.
Is there anything that I should do to get the
sort order of the updated table/dataview to
refresh to include the new record?
Below is a small segment of code that sets the
defaultview sort property of the datatable in the
typed data set.
When I step through each of the rows in the
myComments() array the records are not in the
sort order specified.
Dim myCommentDR As DesignDataSet.CommentRow
myDesignDS.Comment.DefaultView.Sort = "cDate DESC"
Dim myComments() As DesignDataSet.CommentRow
myComments =
myProjectDR.GetChildRows("FK_Comment_Project")
For Each myCommentDR In myComments
........
Does anybody have any thgouhts on how I can
correct this logical error.
Thanks,
Jason.
in a typed dataset. When I first populate
a tree view with the contents of the dataset
the records are in the correct sort order.
After adding a new record to the dataset, and
then refreshing the draw tree routine, the new
record is not in the correct sort order.
Is there anything that I should do to get the
sort order of the updated table/dataview to
refresh to include the new record?
Below is a small segment of code that sets the
defaultview sort property of the datatable in the
typed data set.
When I step through each of the rows in the
myComments() array the records are not in the
sort order specified.
Dim myCommentDR As DesignDataSet.CommentRow
myDesignDS.Comment.DefaultView.Sort = "cDate DESC"
Dim myComments() As DesignDataSet.CommentRow
myComments =
myProjectDR.GetChildRows("FK_Comment_Project")
For Each myCommentDR In myComments
........
Does anybody have any thgouhts on how I can
correct this logical error.
Thanks,
Jason.