المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : getcellbounds() of datagridviewcheckboxcell



C# Programming
02-10-2010, 04:42 PM
Hello,

Datagridview OrderView;

In the above Datagridview my 2nd column is a checkboxcolumn

Rectangle contentBounds = OrderView.Columns[2].CellTemplate.GetContentBounds(0);

But I cant get the contentBounds of the check box
I m getting the rectangle as x=0 y=0

But actually the checkbox column is made and checkbox appears in the first row.

How can I get the bounds ?

thank you