Skip to main content
June 2, 2013
Answered

Show or hide rows in datagrid

  • June 2, 2013
  • 3 replies
  • 532 views

Gidday

I color code rows in a datagrid according to a status property in the dataprovider for each row.

I'd also like to have to the option of ticking a checkbox to show or hide rows of  status 3.

Would this be possible with one dataprovider, or would I have to keep two dataproviders - one with the the status 3 and one without, and swap the dataproviders depending on the checkbox state?

Thanks guys

This topic has been closed for replies.
Correct answer kglad

it's possible but would probably require a custom cellrenderer.

it would be easier to use filtered dataproviders to show/hide certain rows.

3 replies

kglad
Community Expert
kgladCommunity ExpertCorrect answer
Community Expert
June 2, 2013

it's possible but would probably require a custom cellrenderer.

it would be easier to use filtered dataproviders to show/hide certain rows.

June 3, 2013

Wow - thanks kGlad. A filtered dataprovider made the job EASY!!

kglad
Community Expert
Community Expert
June 3, 2013

you're welcome.