lamont Posted June 6, 2015 Share Posted June 6, 2015 Datagridview de ileri geri geziniyorum ama O Satırı Seçemiyorum sadece datagridview içinde Seçili Geliyor Kısaca Üstüne Tıkladıgımızda Yaptıgı işi Yapmıyor Satır Mavi Olarak seçiyor Kodları Veriyorum Seçme Kısmını Nasıl Yapaiblirim private void btnİlkSatır_Click(object sender, EventArgs e) { dataGridView1.Rows[0].Selected = true;// dataGridView1 İçindeki İlk Kayda Götürür } private void btnSonSatır_Click(object sender, EventArgs e) { dataGridView1.Rows[dataGridView1.Rows.Count - 1].Selected = true;// dataGridView1 İçindeki Son Kayda Götürür } int i = -1; private void btnOnceki_Click(object sender, EventArgs e) { if (i == -1) i = dataGridView1.CurrentCell.RowIndex;// dataGridView1 İçindeki Bir Önceki Kayda Gider if (i > 0) i -= 1; dataGridView1.Rows[i].Selected = true; private void btnSonraki_Click(object sender, EventArgs e) { if (i < dataGridView1.Rows.Count - 1) { if (i == -1) i = dataGridView1.CurrentCell.RowIndex;// dataGridView1 İçindeki Bir Sonraki Kayda Gider i += 1; } } Quote Link to comment Share on other sites More sharing options...
bilgitron Posted June 6, 2015 Share Posted June 6, 2015 Bu kodlarda grid içeriğini alma yok ki.?Grid içerisinde gezinme var. vb olarak.; dim xx as string xx =DataGridView1.CurrentRow.Cells(0).Value olmalı. Quote Link to comment Share on other sites More sharing options...
lamont Posted June 6, 2015 Author Share Posted June 6, 2015 Kayıtlar Arası Geziyor Ama Mouse Tıkaldıgın gibi Seçmiyor Grid Yanında Tıklayınca Küçük Bir Ok Oluşuyor Bunu Butonlaral Gezerken Yapmak İstiyorum Buton Bir Sonrakine Geçince Sanki Mouse İle Tıklanmış Gibi Olsun Quote Link to comment Share on other sites More sharing options...
bilgitron Posted June 6, 2015 Share Posted June 6, 2015 kayıtlar arasınd gezinme esnasında bir event oluşur. Bunu validate ile kontrol edebilirsin. Quote Link to comment Share on other sites More sharing options...
lamont Posted June 6, 2015 Author Share Posted June 6, 2015 Nasıl Yani Anlamadım Biraz Daha Açıklayıcı Anlatabilirmisin 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.