2 Replies Latest reply on Apr 17, 2007 2:59 AM by 01robert

    Problem with DataGrid

      Dear all:
      Please let me describe my requirement first:
      Now, I wanna indicate the current row has been selected by selecting the checkbox.
      I've already embedded the checkbox into the DataGrid as a column by the "itemRender". After that, I clicked the column header to sort, but I find that the checkbox cannot work well.

      If you've met the same problem?
      Any good idea?

      Thanks forward.
        • 1. Re: Problem with DataGrid
          jlingwai Level 1
          Have you assigned a value that relates to the check box? For instance, lets say the datagrid dataprovider is an ArrayCollection that has the following items: Name:value, ID:value, IsChecked:value. When you check the box you change the value of the IsChecked value(true/false). This way when you resort your column you can check the IsChecked value and either check or uncheck the box.

          • 2. Re: Problem with DataGrid
            I have the similar problem:
            I have a datagrid with a checkbox column. the checkBox displays correct at first. After i checked/unchecked some item, and refresh the datagrid, then there maybe have some items display incorrect. It occurs irregular .

            any suggestion?