When the property AllowMarking is set up to true on AxGridView then it will always come with first row marked. Although it can be good in some cases but when we are adding the items to purchase requisition we do not want to have a first item already marked. To not get the first row marked we need to explicitly set the position on dataset datasource to -1:

public

void executeQuery()

{

super();

this.setPosition(-1);

}

So if we want to disable it as mentioned when adding items to purchase requisition we would need to add this.setPosition(-1) in DataSet PurchReqCatalogItems \ InventTable and would look like:

public void executeQuery()

{

    this.addCatalogPolicyRule();

    this.addCategoryAccesssPolicyRule();

    inventTable_ds.query().clearCompanyRange();

    inventTable_ds.query().addCompanyRange(buyingLegalEntity);

 

    if (inventTable_ds.queryRun())

    {

        inventTable_ds.queryRun().query().clearCompanyRange();

        inventTable_ds.queryRun().query().addCompanyRange(buyingLegalEntity);

    }

 

    super();

    //added code

    this.setPosition(-1);

}