korasoglu Posted March 4, 2016 Share Posted March 4, 2016 Arkadaşlar keypresste char 13 eşitse enter yapıyor sorun yok peki down tuşu bastırıp datagridi nasıl seçtirebilirim. Quote Link to comment Share on other sites More sharing options...
KintaRo Posted March 4, 2016 Share Posted March 4, 2016 cevabı zaten vermişsin :) if (e.KeyCode == Keys.Down) { // olaylar olaylar } Quote Link to comment Share on other sites More sharing options...
korasoglu Posted March 4, 2016 Author Share Posted March 4, 2016 (edited) Şimdi anladım seçilen rowun rengini değiştirmiştim haliyle seçilmedi zannetmişim evet tamam. Evet şimdi Datagridin seçtirdim ve Datagridin key pressine if (e.KeyChar == 13) { if (dataGridView1.Rows.Count != 0) { aa = dataGridView1.CurrentRow.Cells[1].Value.ToString(); bb = dataGridView1.CurrentRow.Cells[0].Value.ToString(); satisbilgi(dataGridView6); } } yazıyorum fakat bir alt satırı seçiyor ve oradaki valueyi veriyor bunu çözemedim. Edit : PreviewKeyDown yazmam gerekiyormuş sorun halledildi tşk. Edited March 4, 2016 by korasoglu Quote Link to comment Share on other sites More sharing options...
KintaRo Posted March 4, 2016 Share Posted March 4, 2016 enter'a basınca bir alt satıra geçiyorsa onun bilgilerini alıyor olabilir. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.