2 Replies Latest reply on Aug 15, 2007 1:52 PM by darcybaston

    DataGrid and Focus

    anil_parashar
      Hi all,
      I am facing problem while setting focus in a particular row in Datagrid.
      pls send me code if anybody has done it.
      thanks
        • 1. Re: DataGrid and Focus
          ntsiii Level 3
          Please be more specific.
          Tracy
          • 2. Re: DataGrid and Focus
            darcybaston
            Here's a situation that may be useful:

            Using:
            IList(datagrid_id.dataProvider).addItem(newItem);

            A new editable row is added to my datagrid. But it's at the bottom of the list, where the scroll pointer won't be. How to make the scroll point jump to the last item, and put the focus in one of the column cells to be edited?

            I'd like to do this to give the user a visual cue, "the list just jumped to the last item - you now see a text edit cursor in it, and the sunken box its flashing in is where what you type will appear." :)

            Darcy