|
Este artigo foi traduzido por máquina. Coloque o ponteiro do mouse sobre as frases do artigo para ver o texto original. Mais informações.
|
Tradução
Original
|
Evento DataGridView.UserDeletingRow
Assembly: System.Windows.Forms (em System.Windows.Forms.dll)
private void DataGridView1_UserDeletingRow(object sender, DataGridViewRowCancelEventArgs e) { DataGridViewRow startingBalanceRow = DataGridView1.Rows[0]; // Check if the Starting Balance row is included in the selected rows if (DataGridView1.SelectedRows.Contains(startingBalanceRow)) { // Do not allow the user to delete the Starting Balance row. MessageBox.Show("Cannot delete Starting Balance row!"); // Cancel the deletion if the Starting Balance row is included. e.Cancel = true; } }
Windows 7, Windows Vista SP1 ou posterior, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core não compatível), Windows Server 2008 R2 (Server Core não compatível com SP1 ou posterior), Windows Server 2003 SP2
O .NET Framework não oferece suporte a todas as versões de cada plataforma. Para obter uma lista das versões com suporte, consulte Requisitos de sistema do .NET Framework.