Hi all

I need to programmatically select a particular row in a datagrid and
cannot see how it is done. I want to do the same as if the user
clicked on a row only programmatically.

Say I had a DataGrid with ID=dg containing two columns Countries and Capitals.

I want to be able to issue a command like:

dg.selectedIndex = dg.capitals=="Paris ";

ie to select the row that contains Paris in the Capitals column.

As if the user selected the France/Paris row only doing it programmatically.

I am thinking it must be a feature but cannot find it :(

Please shed some light or even let me know if what I want sounds crazy.

-D

Reply via email to