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
Solved

several datagrids bound to several dataviews that come from one dataset

Posted on 2006-06-12
3
375 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
3 Comments
 
LVL 19

Accepted Solution

by:
arif_eqbal earned 500 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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

Suggested Solutions

A while ago, I was working on a Windows Forms application and I needed a special label control with reflection (glass) effect to show some titles in a stylish way. I've always enjoyed working with graphics, but it's never too clever to re-invent …
Introduction As chip makers focus on adding processor cores over increasing clock speed, developers need to utilize the features of modern CPUs.  One of the ways we can do this is by implementing parallel algorithms in our software.   One recent…
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…
In an interesting question (https://www.experts-exchange.com/questions/29008360/) here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…

789 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