• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 398
  • Last Modified:

several datagrids bound to several dataviews that come from one dataset

Hello Exp.
I have a datagrid for each day of the week.  Each datagird is bound to a dataview that filters a dataset to the appropriate day of the week.

When selecting a cell.  The contents appear in another datagird.
When selecting and deleting a row.  A Cell or sometimes the whole row from another datagrid is selected and deleted.

It seems that since all the datagirds are bound to the same dataset through a view that the last grid that was bound has the focus for all editing.

What is the best way to go about having several datagirds hooked to the same data filtered by day?
1 Solution
Well you need to have the Datagrids populated using separate DataTables
Dim DT_Day1 As New DataTable
DT_Day1.DefaultView.RowFilter("Your Criteria")

So On for other DataGrids
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now