Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

several datagrids bound to several dataviews that come from one dataset

Posted on 2006-06-12
3
Medium Priority
?
387 Views
Last Modified: 2010-04-23
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.

Problem-
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.

Observation-
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?
0
Comment
Question by:justinwood88
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 19

Accepted Solution

by:
arif_eqbal earned 2000 total points
ID: 16891811
Well you need to have the Datagrids populated using separate DataTables
Eg.
Dim DT_Day1 As New DataTable
DT_Day1=MyDataset.Tables(0)
DT_Day1.DefaultView.RowFilter("Your Criteria")
DataGrid_Day1.DataSource=DT_Day1

So On for other DataGrids
0

Featured Post

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If you're writing a .NET application to connect to an Access .mdb database and use pre-existing queries that require parameters, you've come to the right place! Let's say the pre-existing query(qryCust) in Access takes a Date as a parameter and l…
Parsing a CSV file is a task that we are confronted with regularly, and although there are a vast number of means to do this, as a newbie, the field can be confusing and the tools can seem complex. A simple solution to parsing a customized CSV fi…
Sometimes it takes a new vantage point, apart from our everyday security practices, to truly see our Active Directory (AD) vulnerabilities. We get used to implementing the same techniques and checking the same areas for a breach. This pattern can re…
In this video, Percona Director of Solution Engineering Jon Tobin discusses the function and features of Percona Server for MongoDB. How Percona can help Percona can help you determine if Percona Server for MongoDB is the right solution for …

705 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question