Navigacija
Lista poslednjih: 16, 32, 64, 128 poruka.

DataGrid current index to TxtBox

[es] :: .NET :: DataGrid current index to TxtBox

[ Pregleda: 2251 | Odgovora: 1 ] > FB > Twit

Postavi temu Odgovori

Autor

Pretraga teme: Traži
Markiranje Štampanje RSS

xxxrugby

Član broj: 16068
Poruke: 653
*.adsl.net.t-com.hr.

Sajt: www.zagreb-rugby.hr


Profil

icon DataGrid current index to TxtBox16.11.2006. u 08:48 - pre 212 meseci
Imam popunjen DataGrid filled s DataTable.
I sad nema DataGrid View nego ima samo cisti DataGrid. Nema zato jer radim s TurboExplorer koj je free pa eto tako manje opcija.

E sad kako da uzmem s trenutnog aktivnog ROW-a podatke i prebacim ih u TexBox-ove.

Znaci nesto kao ovo u data grid View-u

txtLokacija.Text = DataGridView.CurrentRow.Cells["Lokacija"].Value.ToString();
xxxrugby: "We are all philosophers, when question is about politics!"
 
Odgovor na temu

xxxrugby

Član broj: 16068
Poruke: 653
*.adsl.net.t-com.hr.

Sajt: www.zagreb-rugby.hr


Profil

icon Re: DataGrid current index to TxtBox16.11.2006. u 14:34 - pre 212 meseci
Rijesio

DataView dv = new DataView(AAAADataTable);
DataGridCell dc = AAAADataGrid.CurrentCell;
this.textBox1.Text = dv.Table.Rows [dc.RowNumber][0].ToString();
xxxrugby: "We are all philosophers, when question is about politics!"
 
Odgovor na temu

[es] :: .NET :: DataGrid current index to TxtBox

[ Pregleda: 2251 | Odgovora: 1 ] > FB > Twit

Postavi temu Odgovori

Navigacija
Lista poslednjih: 16, 32, 64, 128 poruka.