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
190
TemplateDataField column won't sort with the grid
posted

I have a TemplateDataField column that contains an asp button. When you sort on any other column the button column doesn't sort with the rest of the grid. On InitializeRow I set the onclick event to open up a new WebTab passing the values of three other columns for the given row. Anytime you sort the grid the buttons get out of sync and you no longer are viewing the detail for the correct row. Has anyone come up against this? I don't really care to sort on this column, but I expect the column to sort with the rest of the grid. Any help is much appreciated as I haven't found this specific situation in the forums.

Thanks,

Karen

Parents
No Data
Reply
  • 190
    Verified Answer
    Offline posted

    I found a workaround. Rather than setting the onclick event server side, I'm now doing it client side. That way I no longer have to worry about the grid sorting. I grab the data I need from the selected row to open the tab.

    Thanks,

    Karen

Children