overide onpaint for datagrid

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
 
F

Fabien

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/
 
S

shawrie

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top