Suppress duplicate values in a Datagrid

  • Thread starter Thread starter Kelly Pearson
  • Start date Start date
K

Kelly Pearson

Is it possible to suppress duplicate values on repeating rows of a
datagrid? For example:

dept. name
------- ------------
acct joe smith
mary jones <--- acct suppressed
payroll mickey mouse
donald duck <--- payroll suppressed

Any thoughts would be greatly appreciated.

Thanks,
Kelly Pearson
 
You would have to do this in the OnItemDataBound event of your grid. By
saving the previous department you can then check and see if it is the same
and then set the fields visibility to false when the saved department equals
the new one.
 
Kelly said:
Is it possible to suppress duplicate values on repeating rows of a
datagrid? For example:

dept. name
------- ------------
acct joe smith
mary jones <--- acct suppressed
payroll mickey mouse
donald duck <--- payroll suppressed

Any thoughts would be greatly appreciated.

Thanks,
Kelly Pearson
 
Back
Top