Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Can I select Row on RightClick?
Message
Information générale
Forum:
ASP.NET
Catégorie:
Formulaires
Versions des environnements
Environment:
VB 9.0
OS:
Vista
Network:
Windows 2008 Server
Database:
MS SQL Server
Divers
Thread ID:
01345747
Message ID:
01345881
Vues:
16
Hi Marcia,

"CellMouseClick method in DataGridView"
May be you can try something like this part of code:
        private void dgvDataReader_CellMouseClick(object sender, DataGridViewCellMouseEventArgs e)
        {
            if (e.Button == MouseButtons.Right)
                if (e.ColumnIndex != -1 && e.RowIndex != -1)
                {
                    dgvDataReader.ClearSelection();
                    dgvDataReader.CurrentCell = dgvDataReader.Rows[e.RowIndex].Cells[e.ColumnIndex];
                }
        }
HTH
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform