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
1570
How to get index of selected row from child band?
posted

Hi,

I have created a context menu inside the child band of WHDG. My question is how to get a datakey of row on which user made right click and context menu appears? I want this value on server side.

Any help will be appreciate.

Thanks,

Mit

Parents
No Data
Reply
  • 12679
    posted

    Hello Mit,

     

    Probably you could handle grid's click client –side event and register your function there. Note that as an argument in this function will be passed the Item(cell) object that has been clicked in the grid, based on this you should be able to select a row from the grid programmatically. In that case if you have “AutoPostback”  flags of RowSelectionChanged event call to the server will be issued and you will be able  to access the selectedRows collection of the grid to get the selected row.

     

     

     

Children