Add row rule to custom grid

Hello it’s my first time to post on the forum,
i want to know if it’s possible to add a row rule to a custom grid.

i have created this with the wizard using a data view. but in this case i want to have the same rule for my grid, is it possible?

here is the code from the wizard to create the row rule

	private void CreateRowRuleShipDtlDtlErrorEquals_1()
	{
		// Description: Test
		// **** begin autogenerated code ****
		RuleAction errorShipDtl_RowAction = RuleAction.AddRowSettings(this.oTrans, "ShipDtl", true, SettingStyle.Error);
		RuleAction[] ruleActions = new RuleAction[] {
				errorShipDtl_RowAction};
		// Create RowRule and add to the EpiDataView.
		RowRusle rrCreateRowRuleShipDtlDtlErrorEquals_1 = new RowRule("ShipDtl.NotCompliant", RuleCondition.Equals, true, ruleActions);
		((EpiDataView)(this.oTrans.EpiDataViews["ShipDtl"])).AddRowRule(rrCreateRowRuleShipDtlDtlErrorEquals_1);
		// **** end autogenerated code ****
	}

here is the code i use to populate my custom grid

	dqa  = new DynamicQueryAdapter(oTrans);
	dqa.BOConnect();
	
	Ice.BO.QueryExecutionDataSet ds = dqa.GetQueryExecutionParametersByID("ShipData");

	ds.ExecutionParameter.Clear();
	ds.ExecutionParameter.AddExecutionParameterRow("DtlNum",DtlNum,"int",false,Guid.NewGuid(),"A");
	dqa.ExecuteByID("ShipData", ds);
	
myCustomGrid.DataSource = dqa.QueryResults.Tables["Results"];

please help me figure out how,
thanks in advance

Bumping for an answer. We’re facing the same challenge for a BAQDataView that we changed to a custom grid. TIA