Unselect the current selected row in Datagrid

Hi everyone,

In the .NET 2.0 framework, how can I set the selection property of a row in a DataGrid control?

It seems strange that there is no easy way to unselect or select a row programatically? Specifically, I am interested in unselecting any selected rows.

Thanks,
xarg
[304 byte] By [xargon] at [2007-11-20 10:56:25]
# 1 Re: Unselect the current selected row in Datagrid
Is this the property you're looking fordataGridView1.Rows[0].Selected = true;
trenches at 2007-11-9 11:36:05 >
# 2 Re: Unselect the current selected row in Datagrid
Legendary!

Thanks mate!

xarg
xargon at 2007-11-9 11:37:06 >