Anarchosa Posted May 9, 2018 Share Posted May 9, 2018 C# Bir Form'dan Bilgi Alıp Diğer Forma Aktarma Form1'den DataGrid bilgisini Alıp Form2'deki Datagrid'e Aktarmasını Nasıl Yapabiliriz? Quote Link to comment Share on other sites More sharing options...
Editor pairs Posted May 10, 2018 Editor Share Posted May 10, 2018 Form2 deki datagrid in modifiers özelliğini public yaparsan erişebilirsin direk verinide göndermiş olursun. Quote Link to comment Share on other sites More sharing options...
Anarchosa Posted May 10, 2018 Author Share Posted May 10, 2018 Aynen erişmek ve göndermek istiyorum. Public yaptigimda gelmiyor. Datagrid özelliklerinden public yaptım ama olmadı. Form2 açıp data yazdım datagrid1 gelmedi. Hani otomatik çıkar ya çıkmadı Quote Link to comment Share on other sites More sharing options...
ylmz025 Posted May 10, 2018 Share Posted May 10, 2018 Anarchosa, 16 saat önce yazdı: C# Bir Form'dan Bilgi Alıp Diğer Forma Aktarma Form1'den DataGrid bilgisini Alıp Form2'deki Datagrid'e Aktarmasını Nasıl Yapabiliriz? datasource özelliklerine eşitleme yapman yeterli eğer farklı bir uygulama yapmıyorsan. örnek bir butona tıklayınca form1deki datagridin verilerini form2deki datagride gönderme (form2deki datagridin modifiers özelliği public olmalı) private void button1_Click(object sender, EventArgs e) { Form2 f = new Form2(); f.dataGridView1.DataSource = dataGridView1.DataSource; } Quote Link to comment Share on other sites More sharing options...
Anarchosa Posted May 10, 2018 Author Share Posted May 10, 2018 iki tarafta public olmasına rağmen Form1'deki bilgiyi form2'de göstermiyor. ylmz025, 6 saat önce yazdı: datasource özelliklerine eşitleme yapman yeterli eğer farklı bir uygulama yapmıyorsan. örnek bir butona tıklayınca form1deki datagridin verilerini form2deki datagride gönderme (form2deki datagridin modifiers özelliği public olmalı) private void button1_Click(object sender, EventArgs e) { Form2 f = new Form2(); f.dataGridView1.DataSource = dataGridView1.DataSource; } İiki tarfata public olmasına rağmen göstermiyor. Quote Link to comment Share on other sites More sharing options...
artal73 Posted May 10, 2018 Share Posted May 10, 2018 Kırmızı ile altı çizili alanları ekleyin tamamdır. . Please register to see this content. Quote Link to comment Share on other sites More sharing options...
Anarchosa Posted May 11, 2018 Author Share Posted May 11, 2018 Form13 aktarim= new Form13(this); aktarim.Show(); https://i.hizliresim.com/6Jgl39.png Quote Link to comment Share on other sites More sharing options...
Anarchosa Posted May 11, 2018 Author Share Posted May 11, 2018 Tamam Dediğiniz Kodları Girdim. Ama Datagrid BOŞ GELİYOR. Quote Link to comment Share on other sites More sharing options...
artal73 Posted May 11, 2018 Share Posted May 11, 2018 Kodlarınızı benim paylaştığım gibi paylaşır mısınız? Quote Link to comment Share on other sites More sharing options...
Anarchosa Posted May 11, 2018 Author Share Posted May 11, 2018 Dediğiniz Kodları Harfiyen Girdim. Girmeme Rağmen FORM1'den Aldığı bilgileri,FORM2'ye Aktarmıyor. Datagrid Bakıyorum İçi BOŞ. Quote Link to comment Share on other sites More sharing options...
artal73 Posted May 11, 2018 Share Posted May 11, 2018 Bir yerde bir hata var kodları görmem lazım. Çünkü yukarıdaki yöntem çalışıyor. Quote Link to comment Share on other sites More sharing options...
ylmz025 Posted May 11, 2018 Share Posted May 11, 2018 Anarchosa, 7 dakika önce yazdı: Dediğiniz Kodları Harfiyen Girdim. Girmeme Rağmen FORM1'den Aldığı bilgileri,FORM2'ye Aktarmıyor. Datagrid Bakıyorum İçi BOŞ. Arkadaşın dediği gibi kendi yazdığınızı paylaşırsanız daha hızlı çözüm üretilir yoksa farazi yorum yapmış oluruz 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.