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
475
Obtaining row number and corresponding data
posted

I have an UltraWebGrid whose first column consists of buttons while the rest consists some data value I need to know if I click in one of the buttons, what properties of the UltraWebGrid would enable me to obtain the following information:

1) The row number of a cell which is clicked.

2) The value of the second column on that row.

 Thanks

  • 480
    posted

    It should be in

    - cell.Row.Index 

    - cell.Row.Cells[1].Value; 

     

    but I don't know why it depends from where you are trying to get it and in what event:

    is it a javascript function, is it a server side, is in an event of the button ... ???

  • 384
    posted

    1) Does UltraWebGrid.ActiveRow.Index not give you what you need?

    2) UltraWebGrid.ActiveRow.Cells[1].Value