Dim AA As String = DataGridView1.CurrentRow.Cells("性別").Value.ToString If aa = "男性" Then aa = "0" Else aa = "1" End If