列Datagridview
を含む があります。
列の項目をクリックすると。
常に最初の行を選択します
私も試しました
.currentcell = null and .clearselection();
// これをform_load
しかし、何も起こりません。
ここに私のコードがあります
private void dgv1_CellContentClick(object sender, DataGridViewCellEventArgs e)
{
if (e.ColumnIndex == 0)
{
dgv1.CurrentCell = null;
dgv1[e.ColumnIndex, e.RowIndex].Value.ToString();
if (Path.GetExtension(path) == ".pdf")
{
Process.Start(path);
}
}
}