locked
GridView --> GridView --> DetailsView RRS feed

  • Question

  • User1227885780 posted

    All,

    I have linked up a GV to show another GV, then a DV. Thing is, if the SECOND DV is empty, I want it to show the DV regardless.

    Thing is, I don't know how to get the GridViewTwo.Rows.Count AFTER GridViewOne_SelectedIndexChanged. It always retains the previous value. 

    How can I get the new row count of the second gridview from the changed state of the first one?

    Thanks in advance! Evie

    Monday, June 6, 2011 1:55 PM

Answers

  • User1446927574 posted

    in SelectedIndexChanged of first Grid, Call GridViewTwo.DataBind() Then get RowCount.

    I hope that helps.

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Monday, June 6, 2011 5:51 PM

All replies

  • User1446927574 posted

    in SelectedIndexChanged of first Grid, Call GridViewTwo.DataBind() Then get RowCount.

    I hope that helps.

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Monday, June 6, 2011 5:51 PM
  • User1227885780 posted

    Thanks! That did it

    Monday, June 6, 2011 7:23 PM