Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.
One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.
Imports System.ComponentModel Public Class frmMisc Private Class Test Public Sub New() End Sub Public Sub New(ByVal one As String, ByVal two As String) Me.One = one Me.Two = two End Sub Public Property One Public Property Two End Class Private _data As BindingList(Of Test) Private Sub Misc_Load(sender As Object, e As System.EventArgs) Handles Me.Load _data = New BindingList(Of Test) _data.Add(New Test("1", "2")) DataGridView1.DataSource = _data End Sub Private Sub DataGridView1_RowEnter(sender As Object, e As System.Windows.Forms.DataGridViewCellEventArgs) Handles DataGridView1.RowEnter Dim row As Test = DataGridView1.Rows(e.RowIndex).DataBoundItem If row IsNot Nothing Then TextBox1.DataBindings.Clear() TextBox1.DataBindings.Add("Text", row, "One") TextBox2.DataBindings.Clear() TextBox2.DataBindings.Add("Text", row, "Two") End If End Sub Private Sub Button1_Click(sender As System.Object, e As System.EventArgs) Handles Button1.Click _data.Add(New Test) End Sub End Class
Add your voice to the tech community where 5M+ people just like you are talking about what matters.
Join the community of 500,000 technology professionals and ask your questions.