Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
315
Showing a button OR text depending on DB value
posted

Hi,

 I've added a button clumn to my grid, to allow users to enter further details on the data held through a popup. But i only need to show the button if the further details have not yet been added.

I'm adding the column on InitializeLayout; is it possible to check at this point the data from which the grid is bound, to see if the data has alreday been added? I'd like to show a column showing 'Complete' or similar, instead of the button column

 

Thanks in advance

 

jon 

Parents
No Data
Reply
  • 45049
    posted

    You need to use a templated column, and dynamically switch what's in the cell item template from row to row.  I'm assuming, by the way, you want to show the text "Complete" in a cell in this column for an individaul row, instead of the whole column.

    InitializeLayout is too soon to investigate the data in any rows of the grid.  The structure of your grid has been determined at this point, but rows haven't been added yet.  I suggest using the InitializeRow event instead.

Children