0)[/SIZE][SIZE=2][COLOR=#008000][SIZE=2][COLOR=#008000]//ondan sonra hep bu kod calısacak boylece sen her bastıgında bı oncekı form kapanacak yenısı acılacak(2) [/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2]{ veri_to_yeniFrom.Close(); veri_to_yeniFrom = [/SIZE][SIZE=2][COLOR=#0000ff][SIZE=2][COLOR=#0000ff]new[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][COLOR=#2b91af][SIZE=2][COLOR=#2b91af]DENEMESİLİNECEK[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2](); veri_to_yeniFrom.txtİSİM.Text = ([/SIZE][SIZE=2][COLOR=#0000ff][SIZE=2][COLOR=#0000ff]string[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2])(dataGridView1[1, dataGridView1.CurrentRow.Index].Value); veri_to_yeniFrom.txtSOYİSİM.Text = ([/SIZE][SIZE=2][COLOR=#0000ff][SIZE=2][COLOR=#0000ff]string[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2])(dataGridView1[2, dataGridView1.CurrentRow.Index].Value); veri_to_yeniFrom.txtADRES.Text = ([/SIZE][SIZE=2][COLOR=#0000ff][SIZE=2][COLOR=#0000ff]string[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2])(dataGridView1[5, dataGridView1.CurrentRow.Index].Value); veri_to_yeniFrom.txtDOGUMTARIHI.Text = ([/SIZE][SIZE=2][COLOR=#2b91af][SIZE=2][COLOR=#2b91af]Convert[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2].ToDateTime(dataGridView1[4, dataGridView1.CurrentRow.Index].Value)).ToString(); veri_to_yeniFrom.txtYAŞ.Text = ([/SIZE][SIZE=2][COLOR=#0000ff][SIZE=2][COLOR=#0000ff]string[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2])([/SIZE][SIZE=2][COLOR=#2b91af][SIZE=2][COLOR=#2b91af]Convert[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2].ToInt32(dataGridView1[3, dataGridView1.CurrentRow.Index].Value)).ToString(); veri_to_yeniFrom.Show(); } [/SIZE][SIZE=2][COLOR=#0000ff][SIZE=2][COLOR=#0000ff]else[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][COLOR=#008000][SIZE=2][COLOR=#008000]//ilk bastıgında bu kod calısacak ve countun degerı artacak(1) [/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2]{ veri_to_yeniFrom = [/SIZE][SIZE=2][COLOR=#0000ff][SIZE=2][COLOR=#0000ff]new[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][COLOR=#2b91af][SIZE=2][COLOR=#2b91af]DENEMESİLİNECEK[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2](); veri_to_yeniFrom.txtİSİM.Text = ([/SIZE][SIZE=2][COLOR=#0000ff][SIZE=2][COLOR=#0000ff]string[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2])(dataGridView1[1, dataGridView1.CurrentRow.Index].Value); veri_to_yeniFrom.txtSOYİSİM.Text = ([/SIZE][SIZE=2][COLOR=#0000ff][SIZE=2][COLOR=#0000ff]string[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2])(dataGridView1[2, dataGridView1.CurrentRow.Index].Value); veri_to_yeniFrom.txtADRES.Text = ([/SIZE][SIZE=2][COLOR=#0000ff][SIZE=2][COLOR=#0000ff]string[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2])(dataGridView1[5, dataGridView1.CurrentRow.Index].Value); veri_to_yeniFrom.txtDOGUMTARIHI.Text = ([/SIZE][SIZE=2][COLOR=#2b91af][SIZE=2][COLOR=#2b91af]Convert[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2].ToDateTime(dataGridView1[4, dataGridView1.CurrentRow.Index].Value)).ToString(); veri_to_yeniFrom.txtYAŞ.Text = ([/SIZE][SIZE=2][COLOR=#0000ff][SIZE=2][COLOR=#0000ff]string[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2])([/SIZE][SIZE=2][COLOR=#2b91af][SIZE=2][COLOR=#2b91af]Convert[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2].ToInt32(dataGridView1[3, dataGridView1.CurrentRow.Index].Value)).ToString(); veri_to_yeniFrom.Show(); } count++; kolay gelsın } [/SIZE] [url=http://www.csharpnedir.com/forum2/forum_posts.asp?TID=24381&PID=99934#99934]Orjinal[/url]"/> Visual C# : datagridview to textbox ?? - Dostuz.Biz
Kaynak : Http://dostuz.biz/forum/mesaj/386446/visual-c-datagridview-to-textbox.html
2009 - = - ([/SIZE][SIZE=2][COLOR=#0000ff][SIZE=2][COLOR=#0000ff]string[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2])(dataGridView1[5, - boylece - dataGridView1_CellClick([/SIZE][SIZE=2][COLOR=#0000ff][SIZE=2][COLOR=#0000ff]object[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2] - acılacak(2) - = - veri_to_yeniFrom; [/SIZE][SIZE=2][COLOR=#0000ff][SIZE=2][COLOR=#0000ff]private[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][COLOR=#0000ff][SIZE=2][COLOR=#0000ff]void[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2] - kapanacak - e) { [/SIZE][SIZE=2][COLOR=#0000ff][SIZE=2][COLOR=#0000ff]if[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2] - = - dataGridView1.CurrentRow.Index].Value); veri_to_yeniFrom.txtADRES.Text - [/SIZE][SIZE=2][COLOR=#0000ff][SIZE=2][COLOR=#0000ff]new[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][COLOR=#2b91af][SIZE=2][COLOR=#2b91af]DENEMESİLİNECEK[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2](); veri_to_yeniFrom.txtİSİM.Text - sen - bastıgında - = - ?? [B]Gönderim - : - = - her - dataGridView1.CurrentRow.Index].Value)).ToString(); veri_to_yeniFrom.txtYAŞ.Text - textbox - to - bu - = - Visual - calısacak - - form - > - - hep - ([/SIZE][SIZE=2][COLOR=#2b91af][SIZE=2][COLOR=#2b91af]Convert[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2].ToDateTime(dataGridView1[4, - 22 - ([/SIZE][SIZE=2][COLOR=#0000ff][SIZE=2][COLOR=#0000ff]string[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2])(dataGridView1[1, - gelsın } [/SIZE] - - C# - sender, - calısacak - ([/SIZE][SIZE=2][COLOR=#0000ff][SIZE=2][COLOR=#0000ff]string[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2])(dataGridView1[2, - 0; [/SIZE][SIZE=2][COLOR=#2b91af][SIZE=2][COLOR=#2b91af]DENEMESİLİNECEK[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2] - ([/SIZE][SIZE=2][COLOR=#0000ff][SIZE=2][COLOR=#0000ff]string[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2])(dataGridView1[1, - [url=http://www.csharpnedir.com/forum2/forum_posts.asp?TID=24381&PID=99934#99934]Orjinal[/url] - dataGridView1.CurrentRow.Index].Value)).ToString(); veri_to_yeniFrom.txtYAŞ.Text - kod - bastıgında - [B]Yazar:[/B] - Haziran - [/SIZE][SIZE=2][COLOR=#0000ff][SIZE=2][COLOR=#0000ff]new[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][COLOR=#2b91af][SIZE=2][COLOR=#2b91af]DENEMESİLİNECEK[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2](); veri_to_yeniFrom.txtİSİM.Text - - - countun - bu - dataGridView1.CurrentRow.Index].Value); veri_to_yeniFrom.txtSOYİSİM.Text - textbox - to - - = - kod - = - Zamanı:[/B] - oncekı - degerı - 0)[/SIZE][SIZE=2][COLOR=#008000][SIZE=2][COLOR=#008000]//ondan - [/SIZE][SIZE=2][COLOR=#2b91af][SIZE=2][COLOR=#2b91af]DataGridViewCellEventArgs[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2] - dataGridView1.CurrentRow.Index].Value)).ToString(); veri_to_yeniFrom.Show(); } [/SIZE][SIZE=2][COLOR=#0000ff][SIZE=2][COLOR=#0000ff]else[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][COLOR=#008000][SIZE=2][COLOR=#008000]//ilk - = - sonra - [URL="http://www.csharpnedir.com/forum2/member_profile.asp?PF=13325"]agon7272[/URL] [B]Konu:[/B] - [/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2]{ veri_to_yeniFrom.Close(); veri_to_yeniFrom - [SIZE=2][COLOR=#0000ff][SIZE=2][COLOR=#0000ff]int[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2] - artacak(1) [/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2]{ veri_to_yeniFrom - = - (count - Saat - datagridview - ([/SIZE][SIZE=2][COLOR=#0000ff][SIZE=2][COLOR=#0000ff]string[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2])([/SIZE][SIZE=2][COLOR=#2b91af][SIZE=2][COLOR=#2b91af]Convert[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2].ToInt32(dataGridView1[3, - dataGridView1.CurrentRow.Index].Value); veri_to_yeniFrom.txtDOGUMTARIHI.Text - = - - 02:59 - bı - dataGridView1.CurrentRow.Index].Value); veri_to_yeniFrom.txtDOGUMTARIHI.Text - ([/SIZE][SIZE=2][COLOR=#0000ff][SIZE=2][COLOR=#0000ff]string[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2])(dataGridView1[2, - ([/SIZE][SIZE=2][COLOR=#0000ff][SIZE=2][COLOR=#0000ff]string[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2])([/SIZE][SIZE=2][COLOR=#2b91af][SIZE=2][COLOR=#2b91af]Convert[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2].ToInt32(dataGridView1[3, - datagridview - yenısı - ?? - ([/SIZE][SIZE=2][COLOR=#0000ff][SIZE=2][COLOR=#0000ff]string[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2])(dataGridView1[5, - dataGridView1.CurrentRow.Index].Value); veri_to_yeniFrom.txtADRES.Text - ve - ([/SIZE][SIZE=2][COLOR=#2b91af][SIZE=2][COLOR=#2b91af]Convert[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2].ToDateTime(dataGridView1[4, - count - = - = - dataGridView1.CurrentRow.Index].Value)).ToString(); veri_to_yeniFrom.Show(); } count++; kolay - dataGridView1.CurrentRow.Index].Value); veri_to_yeniFrom.txtSOYİSİM.Text -