Private Sub DataGridView1_MouseClick(ByVal sender As Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles DataGridView1.MouseClick
If DataGridView1.CurrentCell.Selected = True Then
DataGridView2.Visible = True
thats very helpful code , now i need to add this code but it gives an error:
Private Sub MaterialDDataGridView1_MouseClick(ByVal sender As Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles MaterialDDataGridView1.MouseClick
If MaterialDDataGridView1.CurrentCell.Selected = True Then
MaterialClassificationDGV.Visible = True
Dim i As Integer
i = MaterialDDataGridView1.CurrentRow.Index
MaterialClassificationDGV.CurrentRow.Cells(0).Value = ((MaterialDDataGridView1(0, i).Value()))
Object reference not set to an instance of an object. this is my error , how i can fix it ?
ok , sry again , i fix the problem by add this code :
Private Sub DataGridView1_RowsAdded(ByVal sender As System.Object, ByVal e As System.Windows.Forms.DataGridViewRowsAddedEventArgs) Handles DataGridView1.RowsAdded
If e.RowIndex >= 1 Then
Dim i As Integer
i = DataGridView1.CurrentRow.Index.ToString
DataGridView1.Rows(e.RowIndex - 1).Cells(0).Value = DataGridView1.CurrentRow.Cells(0).Value()
now i need to ask how i can concate the DataGridView1.CurrentRow.Cells(0).Value() with integer value that increment by 1.
thanx in advance
Write a C program that should create a 10 element array of random integers (0 to 9). The program should total all of the numbers in the odd positions of the array and compare them with the total of the numbers in the even positions of the array and indicate ...
I have a 2d matrix with dimension (3, n) called A, I want to calculate the normalization and cross product of two arrays (b,z) (see the code please) for each column (for the first column, then the second one and so on).
the function that I created to find the ...