[x]
Posted via EE Mobile

Search, ask, and monitor your questions on the go with EE Mobile. Visit Experts Exchange from your mobile device and never be out of touch again.

09/11/2009 at 06:41PM PDT, ID: 24726296
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

8.8

How do you populate a datagrid with null values and then add different values to a different data grid. Also Print datagrid

Asked by mizzy22 in .NET Framework 3.x versions, Visual Studio, Microsoft Visual Basic.Net

Tags: Visual Studio 2008, VB forms

I have a project that is nearly completed.. I am stuck on some parts of it.. Right now I have a stored procedure that populates a data grid from a dataset. At this time if a unit is scanned into a text box (form 3) and it matches with the query in form 2 then there is a column called scanned units that it then populated with a Match statement. After all matches have been found I need to populate the nulls or blanks in the datagrid to say NO MATCH and be able to print this grid.  (Basically I am filling the report where no unit numbers where found)

I also need to add to another datagrid the unit numbers that were not a match at all so that I can print those unit off for the users.

1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
34:
35:
36:
37:
38:
39:
40:
41:
'This is form 3
<System.Runtime.InteropServices.ComVisible(True)> Public Class Form3
 
 
    Private Sub TextBox1_KeyUp(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles TextBox1.KeyUp
        If e.KeyCode = Keys.Tab Then
            TextBox1.Clear()
            TextBox1.Text.Length.Equals(16)
        End If
 
    End Sub
 
 
    Dim Found As Boolean
    Private Sub TextBox1_TextChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles TextBox1.TextChanged
        Dim Found As Boolean
        Dim dTable As New DataTable
        dTable.Columns.Add("Code", GetType(String))
        If TextBox1.Text.Length.Equals(16) Then
            For i As Integer = 0 To Form2.Column1DataGridViewTextBoxColumn.DataGridView.Rows.Count - 2
                If Form2.Column1DataGridViewTextBoxColumn.DataGridView.Item(0, i).Value = TextBox1.Text Then
                    Found = True
                    My.Computer.Audio.Play("O:\Groups\02-Public_IT\Shared_IT\Parvo_noise\beep.wav")
                    Form2.ScannerUnitsDataGrid.DataGridView.Item(1, i).Value = "MATCH"
                    Me.TextBox1.Clear()
                    Exit For
                Else
                    Form2.ScannerUnitsDataGrid.DataGridView.Item(1, i).Value = "NO MATCH"
                    Dim drow As DataRow = dTable.NewRow
                    drow(0) = Form2.ScannerUnitsDataGrid.DataGridView.Item(0, i).Value
                    dTable.Rows.Add(drow)
                End If
            Next
            If Not Found Then
                My.Computer.Audio.Play("O:\Groups\02-Public_IT\Shared_IT\Parvo_noise\yikes.wav")
                MessageBox.Show("not there")
            End If
            Found = False
            Form2.DataGridViewNoMatch.DataSource = dTable
        End If
    End Sub
[+][-]09/13/09 12:39 PM, ID: 25321443

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]09/13/09 06:59 PM, ID: 25322650

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]09/14/09 01:01 AM, ID: 25323488

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]09/14/09 05:55 AM, ID: 25324877

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]09/14/09 06:27 AM, ID: 25325126

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]09/14/09 07:26 AM, ID: 25325776

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]09/14/09 09:16 AM, ID: 25326953

View this solution now by starting your 30-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: .NET Framework 3.x versions, Visual Studio, Microsoft Visual Basic.Net
Tags: Visual Studio 2008, VB forms
Sign Up Now!
Solution Provided By: CodeCruiser
Participating Experts: 2
Solution Grade: A
 
 
[+][-]09/14/09 09:55 AM, ID: 25327236

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]09/14/09 01:49 PM, ID: 25329210

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]09/14/09 11:24 PM, ID: 25332210

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]09/15/09 05:24 AM, ID: 25334040

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]09/15/09 05:26 AM, ID: 25334055

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]09/15/09 07:55 AM, ID: 25335560

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]09/15/09 01:31 PM, ID: 25339079

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20090824-EE-VQP-74 - Hierarchy / EE_QW_3_20080625