Search
 
SCRIPT & CODE EXAMPLE
 

CSHARP

c# datagridview cell click event

private void dataGridView1_CellClick(object sender, DataGridViewCellEventArgs e)
{
    if (dataGridView1.CurrentCell.ColumnIndex.Equals(3) && e.RowIndex != -1){
        if (dataGridView1.CurrentCell != null && dataGridView1.CurrentCell.Value != null)
            MessageBox.Show(dataGridView1.CurrentCell.Value.ToString());   
}
Comment

datagridview mouse click event c#

    public event DataGridViewCellMouseEventHandler CellMouseClick;

    private void DataGridView1_CellMouseClick(Object sender, DataGridViewCellMouseEventArgs e)
    {
        MessageBox.Show("Mouse clicked in the datagridview!");
    }
Comment

datagridview mouse click event c#

DataGridView1.CellMouseClick += DataGridView1_CellMouseClick;
Comment

PREVIOUS NEXT
Code Example
Csharp :: how delete multiple row from relation in laravel 
Csharp :: c# string remove 
Csharp :: converting bitmap to byte array c# 
Csharp :: c# encode jpg hiight quality 
Csharp :: change button color in script unity 
Csharp :: system.io.directorynotfoundexception c# 
Csharp :: httpclient post c# example 
Csharp :: unity editor dropdown 
Csharp :: total months between two dates c# 
Csharp :: move files from one folder to another using c# 
Csharp :: .net mvc decimal displayformat currency 
Csharp :: C# calculate sum of digits of a number 
Csharp :: enumerable.range contains 
Csharp :: inline creation dictionnary C# 
Csharp :: c# optional parameters 
Csharp :: c# access session in class 
Csharp :: get value from config file c# 
Csharp :: winforms C# code cross thread operation is not valid 
Csharp :: find character from string c# count 
Csharp :: regex c# 
Csharp :: httpcontext in .net standard 
Csharp :: c# get application root path directory 
Csharp :: unity editor script 
Csharp :: how to run a c# program 
Csharp :: list search c# 
Csharp :: unity find gameobject with layer 
Csharp :: how c# connection 
Csharp :: c# sort for loop 
Csharp :: c# copy files from one folder to another 
Csharp :: Dyanmically create datatable in c# 
ADD CONTENT
Topic
Content
Source link
Name
4+7 =