![]() |
![]() |
![]() |
![]() |
![]() |
FTP | ![]() |
![]() |
CCD | ![]() |
![]() |
Buscar | ![]() |
![]() |
Trucos | ![]() |
![]() |
Trabajo | ![]() |
![]() |
Foros | ![]() |
|
Registrarse | FAQ | Miembros | Calendario | Guía de estilo | Temas de Hoy |
![]() |
|
Herramientas | Buscar en Tema | Desplegado |
#1
|
|||
|
|||
![]() hola forista..una pregunta. esty tratando de ingresar texto desde un objeto tedit a un stringgrid alguien me puede ayudar con este tema, trabajo con c++buider xe3
|
#2
|
||||
|
||||
Hola ralmic.
La primera respuesta que se me ocurre sería: Código:
void __fastcall TForm1::Button1Click(TObject *Sender) { TStringGrid *sg = static_cast<TStringGrid*>(StringGrid1); sg->Cells[sg->Col][sg->Row] = Edit1->Text; } Saludos ![]()
__________________
Daniel Didriksen Guía de estilo - Uso de las etiquetas - La otra guía de estilo .... |
#3
|
|||
|
|||
![]() tengo 3 tedit y quiero a agregarlos a 3 columnas de un stringgrid y asi sucesivamente cuando le de click al boton pase a la siguiente fila y los agregue
|
#4
|
|||
|
|||
tedit stringgrid
especiicamente agregar el texto del tedit al stringrid
|
#5
|
||||
|
||||
Cita:
Código:
void __fastcall TForm1::Button1Click(TObject *Sender) { TStringGrid *sg = static_cast<TStringGrid*>(StringGrid1); static int CurrentRow = sg->FixedRows; if (CurrentRow < sg->RowCount) { sg->Cells[sg->FixedCols][CurrentRow] = Edit1->Text; sg->Cells[sg->FixedCols+1][CurrentRow] = Edit2->Text; sg->Cells[sg->FixedCols+2][CurrentRow] = Edit3->Text; CurrentRow++; } } ![]()
__________________
Daniel Didriksen Guía de estilo - Uso de las etiquetas - La otra guía de estilo .... |
![]() |
|
|
![]() |
||||
Tema | Autor | Foro | Respuestas | Último mensaje |
stringgrid en celda de otro stringgrid?? | noodle_ | OOP | 3 | 17-06-2008 13:36:01 |
TEdit | Io | Varios | 3 | 23-08-2007 21:12:29 |
Pasar el valor de un TEdit dentro de un StringGrid a otro TEdit que está fuera | atirado | Varios | 4 | 11-09-2004 19:13:48 |
Formato en TEdit | jollodel | Varios | 1 | 05-08-2004 10:26:29 |
TEdit | RoyTan | Varios | 5 | 26-11-2003 21:12:33 |
![]() |
|