La idea es poder eliminar las filas selecionadas por el usuario.
Por mas q e buscado no e encontrado ningun metodo q me permita averiguar cuales estan selecionadas. algien me puede ayudar?.
gracias
![]() |
![]() |
|
Moderador: yalmar

//get the coordinates of the selected region of the grid
LeftCell := StringGrid1.Selection.Left;
TopCell := StringGrid1.Selection.Top;
BottomCell := StringGrid1.Selection.Bottom;
RightCell := StringGrid1.Selection.Right;
//The variable TextBuf is used to hold the information that will to to the clipboard
TextBuf := '';
//for all of the selected cells, copy the contents to
//TextBuf and separate lines by returns and cells by tabs
for i := TopCell to BottomCell do begin
for j := LeftCell to RightCell do begin
// here insert the code to remove the selected rows from the stringgrid
end;
end;
Usuarios navegando por este Foro: No hay usuarios registrados visitando el Foro y 0 invitados