Jump to content


Photo

Manipulando Datagridview C#


  • Faça o login para participar
4 replies to this topic

#1 Lucas99

Lucas99

    Normal

  • Usuários
  • 84 posts
  • Sexo:Masculino
  • Localidade:Santos

Posted 08/01/2015, 11:17

Eu criei um DataGridView com a primeira coluna sendo um DataGridViewCheckBoxColumn (CheckBox), e uma outra coluna com nome, ae que vem o problema eu preciso que abra um formulário apenas quando o usuario clicar na celula da checkbox, tipo o usuario pode clicar a vontade na linha , mais quando ele clicar na celula da checkbox que apareça uma mensagem.
Alguem pode me ajudar ?



#2 Danilomaru

Danilomaru

    Ativo

  • Moderadores
  • 300 posts
  • Sexo:Masculino
  • Localidade:brasil

Posted 09/01/2015, 10:28

Amigo, no evento CellContentClick do seu datagrid adicione:

private void dataGridView1_CellContentClick(object sender, DataGridViewCellEventArgs e)
 {
 //Verificamos se e somente se a celula "Coluna1" foi clicada 
if (e.ColumnIndex == dataGridView1.Columns["Coluna1"].Index)
 {
 //interrompe a edição dataGridView1.EndEdit(); MessageBox.Show("abrindo um form..."); } }

Edição feita por: Danilomaru, 09/01/2015, 10:29.


#3 LarPhozyHah

LarPhozyHah

    Super Veterano

  • Usuários
  • 14515 posts
  • Sexo:Masculino
  • Localidade:San Miguel de Tucuman

Posted 30/11/2017, 04:55

Buy Cialis In Canada Cheap Online Levitra buy cialis Dosis Cialis Cheap Propecia Generic
Sildenafil 150 Mg Sublingual viagra Keflex For Cats Amoxicillin Clavulanate Use In Children Kamagra Jelly Efectos Secundarios
Viagra Authentique cialis online Amoxicillin Alternative

#4 JeffMalm

JeffMalm

    Super Veterano

  • Usuários
  • 12254 posts
  • Sexo:Feminino
  • Localidade:Mount Carey

Posted 05/11/2022, 16:19

Antiestrogen, such as tamoxifen TAM, reduces plasma lipids in OL and CONT, but not in OFC, hens and has no effect on fattiness in any of them priligy premature ejaculation pills On FA, a large hypofluorescent, butterfly shaped macular lesion will appear

#5 JeffMalm

JeffMalm

    Super Veterano

  • Usuários
  • 12254 posts
  • Sexo:Feminino
  • Localidade:Mount Carey

Posted 15/12/2022, 02:46

Data were collected at baseline and 1 week, 4 weeks and 3, 6, 9 and 12 months post randomisation Table 2 and at 1 week and 4 weeks post restarting the IMP, if applicable azithromycin 500mg dosage for chlamydia the minute you get off the scales and the weight is signed off then then you consume a solution of waxy maize starch, follow this up about 15 mins later with some 15 30g whey




1 user(s) are reading this topic

0 membro(s), 1 visitante(s) e 0 membros anônimo(s)

IPB Skin By Virteq