我不是很明白你的意思,不知下面的代码能不能满足你的要求;procedure TForm1.StringGrid1Click(Sender: TObject);
begin
if StringGrid1.Cells[StringGrid1.col,StringGrid1.row]='yes' then
StringGrid1.Cells[StringGrid1.col,StringGrid1.row]:='no'
else
StringGrid1.Cells[StringGrid1.col,StringGrid1.row]:='yes';end;
begin
if StringGrid1.Cells[StringGrid1.col,StringGrid1.row]='yes' then
StringGrid1.Cells[StringGrid1.col,StringGrid1.row]:='no'
else
StringGrid1.Cells[StringGrid1.col,StringGrid1.row]:='yes';end;
解决方案 »
- delphi三层,连接oracle报错
- 请问下Toolbar中的toolbutton文字如何换行问题
- 连接MSSQL时,想在出错时看一下出错代码,怎么做?
- 关于DLL文件的问题,大虾请进!!!!
- ADOQuery的问题!
- ********著名关心结贴率爱国人士者Ghyghost给大家送分了************
- 老问题 SQL(Delphi 'like'语句),朋友们的方法不正确
- 答对立即给分!
- 送分,旧帖重贴:好久没贴过了,送点分。。。
- :各位神仙,有谁可以给我一个基于SMPP协议的范例???(急需)
- 一套完善的医院检验科管理系统(DELPHI 源码)。
- Delphi中有没有和VB中的Space()功能相同的函数
procedure TForm1.sgrdMouseDown(Sender: TObject; Button: TMouseButton;
Shift: TShiftState; X, Y: Integer);
var
C, R: Integer;
begin
sgrd.MouseToCell(ScreenToClient(Mouse.CursorPos).x, ScreenToClient(Mouse.CursorPos).Y, C, R);
if sgrd.cells[C,R - 2] = '+' then sgrd.cells[C, R - 2] := '-' else sgrd.cells[C, R - 2] := '+';
end;