i am creating a project in C#.NET 2008 standard edition. how can i make the datagrid view read only, but when a cell is clicked which has data another from should open.
how can i do this

Set "AllowUserToAddRows" and "AllowUserToDeleteRows" to "False" and "EditMode" to "EditProgrammatically" to make it read only.

Add "CellClick" event and use this code:

private void DGV_CellClick(object sender, DataGridViewCellEventArgs e)
        if (dataGridView.Rows[e.RowIndex].Cells[e.ColumnIndex].Value.ToString() != string.Empty)


i am making a cricket website i want that while updating a team in my website i want to see image of particular team

how can i insert a IP address in sql table

commented: By starting your own thread -1