怎样通过pop菜单删掉dbgrid里选中的多行记录,并在数据库中把关联的所有数据删掉??
主要是通过pop菜单怎样知道要删的记录ID?
主要是通过pop菜单怎样知道要删的记录ID?
解决方案 »
- Delphi中怎么把DBGridEh里的数据更新到sqlserver
- 树型控件treeview与数据库
- 请各位大虾指点关于帮助制作的问题!(简单问题给分20)!
- 这个SQL语句怎么写?? 在线等待
- 兄弟们,,把scksrvr.exe发到我的邮箱里!!在线!!谢谢!!
- 如何使用Treeview控件
- 请教:通过子窗口中的变量改变主窗口状态条的text值后,为什么看不到变化?
- Tue Feb 18 11:00:00 2003 如何转换为日期
- 在Delphi 中怎样用VB 写的控件
- 如何在软件creat是设置密码输入窗体
- 如何将FastBMP组件里的位图写入到TPicture里
- 高分求杨勇写的snpack2.25版for delphi6
Button: TMouseButton; Shift: TShiftState; X, Y: Integer);
var
Point: TPoint;
begin
if mbLeft = Button then Exit;
Point.X:=X;
Point.Y:=Y;
Point:=ClientToScreen(Point);
PopupMenu1.Popup(StringGrid1.Left+Point.X, StringGrid1.Top+Point.Y);
end;
begin
GotoBook(pointer(dbgrid1.SelectedRows.items[i])); //定位选中的记录
showmessage(dbgrid1.datasource.dataset.fields[0].asstring);
end;
for i:=0 to dbgrid1.SelectedRows.count-1 do
begin
dbgrid1.datasource.dataset.GotoBook(pointer(dbgrid1.SelectedRows.items[i])); //定位选中的记录
showmessage(dbgrid1.datasource.dataset.fields[0].asstring);
end;