overide onpaint for datagrid

  • Thread starter Thread starter shawrie
  • Start date Start date
S

shawrie

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
 
Hi,

You override the OnPaint method:
protected override void OnPaint(PaintEventArgs e)
{
Graphics g = 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/
 
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
 
Back
Top