Hi,
How do I programmatically select a full row by clicking on it?
DataGrid only select a cell by default..
Thanks.
david
Dmitriy Lapshin [C# / .NET MVP] - 13 Sep 2004 10:36 GMT
Hi David,
Check out the DataGrid section of the WinForms FAQ on
http://www.syncfusion.com. It has an exact answer to your question.

Signature
Sincerely,
Dmitriy Lapshin [C# / .NET MVP]
Bring the power of unit testing to the VS .NET IDE today!
http://www.x-unity.net/teststudio.aspx
> Hi,
>
[quoted text clipped - 3 lines]
> Thanks.
> david
Sanjeeva - 13 Sep 2004 22:53 GMT
Write an event handler for Paint event get the current position and select
the current row.
private void dataGrid1_Paint(object sender,
System.Windows.Forms.PaintEventArgs e)
{
x = ((CurrencyManager)dataGrid1.BindingContext[ dataSet11,
"User" ]).Position;
dataGrid1.Select( x );
}
--
Regards,
Sanjeevakumar Hiremath
__________________________
e-mail : Sanjeeva@proteans.com
Phone: 91-80-36880796
Office: 91-80-51217844
Fax : 91-80-51217536
MSN : sanjeeva_2k4@hotmail.com
YahooIM : jack_hide2000
> Hi,
>
[quoted text clipped - 3 lines]
> Thanks.
> david