Well, if the dataProvider has not been sorted, you can use the following code to select record 3:
*dg.selectedIndex = 2;* If you do not know the index of the item to select, you can pass a reference to the item you want to select: *dg.selectedItem = itemToSelect; ** *If you want to select more then one item you can use: *dg.selectedIndices* or *dg.selectedItems* Greetz Erik On 5/29/08, markgoldin_2000 <[EMAIL PROTECTED]> wrote: > > No, I want to highlight some rows based on, for example, record number > or something. >

