# Check for Matching DataGrid Content

**URL:** https://forum.kirupa.com/t/check-for-matching-datagrid-content/280147
**Category:** flash
**Created:** [January 23, 2009, 10:47am UTC](https://forum.kirupa.com/t/check-for-matching-datagrid-content/280147 "2009-01-23T10:47:17Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![e\_owen](https://avatars.discourse-cdn.com/v4/letter/e/df788c/32.png) [@e\_owen](https://forum.kirupa.com/u/e_owen)
#### Post date: [January 23, 2009, 10:47am UTC](https://forum.kirupa.com/t/check-for-matching-datagrid-content/280147/1 "2009-01-23T10:47:17Z")

</div>

Morning,  
I am building an app which is basically a timesheet. Once the user has chosen client, project and time spent they ‘submit’, and the three fields are added to a datagrid component. At the moment each time they submit a new row is added to the datagrid, I need to prevent a new row being added if that client & project already exists in the datagrid and instead just add the time spent to that column.

I guess I need a way to retrieve the content from the client and project fields and see if it matches what is being added, what is the method to get such information?

Thanks,  
L
