This is a migrated thread and some comments may be shown as answers.

Show diffs between two DataTable objects using Telerik Grid

2 Answers 82 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Michael
Top achievements
Rank 1
Michael asked on 16 Jul 2010, 05:26 PM
Hi,

I have two DataTable objects that both contain the same data (first contains data before a certain change, second has the data after that change).

Assuming that both tables have the same number of records, is there any way to show differences between the tables in a nice, user-friendly way using Telerik RadGrid (or maybe any other Telerik control)?

Thanks,
Michael

2 Answers, 1 is accepted

Sort by
0
Veli
Telerik team
answered on 21 Jul 2010, 02:58 PM
Hello Michael,

I am not sure what exactly do you want to implement. You can have table comparisons in various layouts. You can have 2 grids side by side with different rows /cells bolded or styled differently. Or you can have something completely different.

If you share with us what exactly you have in mind, we can advise you on particular implementation details with RadGrid.

Greetings,
Veli
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Michael
Top achievements
Rank 1
answered on 21 Jul 2010, 07:52 PM
Hello Veli,

Sorry for not being specific. My hope was that this might be a common scenario (like making file diffs when working with version control systems) and therefore RadGrid might have some build-in functionality already for comparing two tables.

Anyway, I've implemented the desired functionality myself already by programmability merging two table into one and highlighting different values on PreRender event.

Thanks,
Michael
Tags
Grid
Asked by
Michael
Top achievements
Rank 1
Answers by
Veli
Telerik team
Michael
Top achievements
Rank 1
Share this question
or