Search
 
SCRIPT & CODE EXAMPLE
 

CSHARP

Getting data from selected datagridview row and which event

private void dataGridView_SelectionChanged(object sender, EventArgs e) 
{
    foreach (DataGridViewRow row in dataGridView.SelectedRows) 
    {
        string value1 = row.Cells[0].Value.ToString();
        string value2 = row.Cells[1].Value.ToString();
        //...
    }
}
Comment

PREVIOUS NEXT
Code Example
Csharp :: save file with unique name c# 
Csharp :: Uncaught TypeError: $(...).validate is not a function 
Csharp :: c# error messagebox 
Csharp :: c# or 
Csharp :: c# player movement 
Csharp :: hex string to int c# 
Csharp :: how to set a custom size for window in monogame 
Csharp :: unity enable gameobject 
Csharp :: asp.net data annotations Datetime 
Csharp :: Animator.GotoState: State could not be found 
Csharp :: unity run void from another script 
Csharp :: Publishing A Single EXE File In.NET Core 
Csharp :: how to flip character in unity 2d 
Csharp :: add two numbers in c# 
Csharp :: init dictionary c# 
Csharp :: cannot convert string to long c# 
Csharp :: create folder in appdata c# 
Csharp :: C# cycle through directory 
Csharp :: c# try catch with error message 
Csharp :: unity lookrotation lerp 
Csharp :: unity mouse wheel 
Csharp :: unity empty action 
Csharp :: how to maximize but show taskbar c# 
Csharp :: Unity Rotate around the real center 
Csharp :: unity text display int 
Csharp :: unity change tag of go 
Csharp :: shutdown system c# 
Csharp :: unity c# class addition syntax 
Csharp :: how to set progress openedge driver name for odbc connection c# 
Csharp :: How do I remove all non alphanumeric characters from a string? 
ADD CONTENT
Topic
Content
Source link
Name
7+7 =