Hi all,

I cannot remember where I read the article, however I read one that showed
me how to overide the paint function of a datagrid so that I could highlight
certain cells in different colours. This works great however if I sort the
datagrid by a particular column the rows do not get updated so the wrong
rows are then coloured! Can i force the datagrid to redraw when it is
sorted?

Thanks
Gav

RE: OnPaint of Datagrid by PhilWilliams

PhilWilliams
Tue Sep 20 17:26:01 CDT 2005

Gav,
Can you post some code?

Cheers,
Phil.

"Gav" wrote:

> Hi all,
>
> I cannot remember where I read the article, however I read one that showed
> me how to overide the paint function of a datagrid so that I could highlight
> certain cells in different colours. This works great however if I sort the
> datagrid by a particular column the rows do not get updated so the wrong
> rows are then coloured! Can i force the datagrid to redraw when it is
> sorted?
>
> Thanks
> Gav
>
>
>