I am trying to remove the objects from the `IEnumerable<ImportDataMappingModel> GridList`

I tried with the below options but non of them is working.

`value` is a property in `ImportDataMappingModel`

```
GridList.ToList().RemoveAll(o => o.value==null);
GridList=GridList.TakeWhile(o => o.value!=null);

```