打开APP
userphoto
未登录

开通VIP,畅享免费电子书等14项超值服

开通VIP
dbgrideh中多选时selection








if
DBGridEh1.Selection.SelectionType = gstRectangle thenbeginDBGridEh1.DataSource.DataSet.Bookmark := DBGridEh1.Selection.Rect.TopRow;DBGridEh1.DataSource.DataSet.Next;
SelectionType=gstRetangle时
进行处理的话,就要用到
AGridEh.Selection.Rect.LeftCol
DBGridEh1.Selection.Rect.TopRow 这样的数据了
 
其它处理可以这样去用
//    for i:=0 to DBGridEhInStroe.SelectedRows.Count-1  do begin
//      bkm:= Pointer(DBGridEhInStroe.SelectedRows.Items[i]);
//      gotoBookMark(bkm);
//    end;
//    StoreNumList:= '';
//    cdsOutStore.First;
//    while not cdsOutStore.Eof do begin
//      if DBGridEhInStroe.SelectedRows.CurrentRowSelected then begin
//        cdsOutStore.Edit;
//        //StoreNumList:= StoreNumList + QuotedStr(cdsOutStore.fieldByName('号').AsString)+',';
//        if cdsOutStore.FieldByName('').AsString<>'1' then begin
//          cdsOutStore.FieldByName('').Value:= 1;
//          cdsOutStore.FieldByName('').Value:= dm_func.lstGVars.Values['loginemployeename'];
//          cdsOutStore.FieldByName('').Value:= Now;
//        end;
//      end;
//      cdsOutStore.Next;
//    end;
本站仅提供存储服务,所有内容均由用户发布,如发现有害或侵权内容,请点击举报
打开APP,阅读全文并永久保存 查看更多类似文章
猜你喜欢
类似文章
【热】打开小程序,算一算2024你的财运
在dbgrideh中允许选择多行,如何知道哪些行被选中
DBGridEh使用技巧
DBGridEh的内容导出excel
delphi adoquery操作(转) beforepost afterpost
转载DBGrid和DBGridEH
dbgrideh的drawroll
更多类似文章 >>
生活服务
热点新闻
分享 收藏 导长图 关注 下载文章
绑定账号成功
后续可登录账号畅享VIP特权!
如果VIP功能使用有故障,
可点击这里联系客服!

联系客服