How come function V is not called when i press button2, and how can i overcome this without the code being in an actual datagridview event ?
Thanks
Anthony
public partial class Form1 : Form
{
public delegate void Call(object sender, DataGridViewCellEventArgs o);
public Form1()
InitializeComponent();
}
private void button2_Click(object sender, EventArgs e)
Call op = new Call(V);
public void V(object sender, DataGridViewCellEventArgs o)
int rowIndex = o.RowIndex;
if (rowIndex >= 0)
string Email = dataGridView1.Rows[o.RowIndex].Cells["DateEntered"].Value.ToString();
textBox2.Text = Email;