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
4165
Best method for finding a cell in child/parent rows.
posted

Hello,

I have a grid where there is a main row and child row. Users can configure what column go in what row (either parent or child) and can also set the order.

What is the best way to find a cell in the afterupdatemethod? I have been doing a set of if statements sort of like

if (e.cell.row.hascell("unitcost"))

   do something

else

{

    if(e.cell.row.band.index == 0)

          if(e.cell.row.childbands[0].rows[0].cells.hascell("unitcost")

                  do something

           else

                    e.cell.row.parentrow.cells.etc.etc

 

Is there a better way?

Thanks.

Parents
  • 469350
    Offline posted

    Hi,

    I'm afraid I do not understand what you are trying to do. What cell are you trying to find?

Reply Children