Hello,
I have a RadGrid that contains a DetailTable. In the DetailTable, I wish to add ImageButtons that can change the order of the items in the DetailTable.
What I need to be able to determine is, how many records will be in the detail table. I need to know this so that for Rows 2 through n-1 (where n is the number of items), I can show both the "Up" and "Down" buttons, and for row n, I can just display the "Up" button.
How can I determine the number of records that will be in the detail table? I have tried on DetailTableDataBind, ItemDataBound, etc. and so far nothing has worked. Any suggestions? Perhaps I need to use DetailTableDataBind or something I have already tried, but with different code?
Thanks!
I have a RadGrid that contains a DetailTable. In the DetailTable, I wish to add ImageButtons that can change the order of the items in the DetailTable.
What I need to be able to determine is, how many records will be in the detail table. I need to know this so that for Rows 2 through n-1 (where n is the number of items), I can show both the "Up" and "Down" buttons, and for row n, I can just display the "Up" button.
How can I determine the number of records that will be in the detail table? I have tried on DetailTableDataBind, ItemDataBound, etc. and so far nothing has worked. Any suggestions? Perhaps I need to use DetailTableDataBind or something I have already tried, but with different code?
Thanks!