title: How do I set rowstate property to Deleted at Runtime?
body: <p>I need to set rowstate property to deleted at Runtime need to modify the rowstate Modified to Deleted.</p>
  
  <p>As i know that row.Delete() method call change the row state to Deleted but it also delete the Row.</p>
  
  <p>Here i just want to change the rowstate to Deleted but datarow should not be deleted:</p>
  
  <p>Sample Code:</p>
  
  <pre><code> Delete delete = new Delete()
                    .from("tb_lib_report_package_link")
                    .where()
                            .add().criteria("lib_report_id  = :pLibReportId ")
                            .and().criteria("package_Id  IN (" + packageLink + ")")
                    .endWhere();
              drow.AcceptChanges();
              drow.Delete();
  
              DataRow[] dra = new DataRow[] { drow };
  
               DbAccessManager accessManager = DbAccessFactory.GetDatabaseAccess(DatabaseType.Oracle, "Data Source=SRV",
                                                                                "DEV", "dev", this.AppCookieData["UserId"]);
              accessManager.ClientId = this.AppCookieData["UserId"];
              DbConnection cn = accessManager.CreateConnection();
              delete.ParameterSetter = new ParameterSetter((builder, param, index) =&gt;
              {
                  switch (builder.GetColumnName(param))
                  {
                      case "pLibReportId":
                          param.DbType = this.ServerCfgReader.DefaultDBProvider.DBDataAccess.GetDbType(drow["LIB_REPORT_ID"].GetType());
                          param.Value = drow["LIB_REPORT_ID"];
                          break;
                      default:
                          throw new NotImplementedException();
                  }
              });
              accessManager.Delete(delete, dra, cn);
  </code></pre>
  
  <p>In this i am getting exception that "Deleted row information cannot be accessed through the row."</p>