all groups > dotnet compact framework > february 2007 >
You're in the

dotnet compact framework

group:

overide onpaint for datagrid


overide onpaint for datagrid shawrie
2/28/2007 2:44:54 AM
dotnet compact framework:
Hi

im new to object orientated and want to make use of the new onpaint
for the datagrid can anyone explain how i can use this? any examples?

thanks Neil
Re: overide onpaint for datagrid Fabien
2/28/2007 3:41:41 AM
Hi,

You override the OnPaint method:
protected override void OnPaint(PaintEventArgs e)
{
Graphics g =3D e.Graphics;
}

Once you have the Graphics reference, you can call any of this class's
members to draw various objects.

BR


Fabien Decret
Windows Embedded Consultant

ADENEO (ADESET)
http://www.adeneo.adetelgroup.com/


[quoted text, click to view]

Re: overide onpaint for datagrid shawrie
2/28/2007 3:50:23 AM
Hi

im using vb .net and trying to use the new overide method in sp2.
basically i have a column of data with numbers in. On display of the
grid i want to be able to replace the number with text so for example
any cell with a 1 in replace with the text INV


thanks
[quoted text, click to view]

AddThis Social Bookmark Button