Solved

several datagrids bound to several dataviews that come from one dataset

Posted on 2006-06-12
3
372 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

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

Well, all of us have seen the multiple EXCEL.EXE's in task manager that won't die even if you call the .close, .dispose methods. Try this method to kill any excels in memory. You can copy the kill function to create a check function and replace the …
Introduction When many people think of the WebBrowser (http://msdn.microsoft.com/en-us/library/2te2y1x6%28v=VS.85%29.aspx) control, they immediately think of a control which allows the viewing and navigation of web pages. While this is true, it's a…
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…

757 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

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now