all groups > vb.net controls > june 2006 >
You're in the

vb.net controls

group:

Datagrid Super/Sub script


Datagrid Super/Sub script Dave
6/26/2006 6:53:49 AM
vb.net controls: Hi all,

I have a datagrid control in VB.Net populated from a datatable.
However one of the cells will have to contain both superscript and
subscript data within it. Does anyone have any idea of how to actually
do this?

Thanks in advance

Dave.
Re: Datagrid Super/Sub script Chris Chilvers
6/27/2006 2:08:22 AM
[quoted text, click to view]

The only way I could think of doing this would be to create your own
DataGridColumnStyle. For this you could look at some of the examples for
creating your own DataGridColumnStyle to display check boxes and images.

The last task would then be to use Graphics.DrawString to render the
different elements of your text.

This guide might be of some help to you:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnwinforms/html/datagridcolumnstyle1.asp
AddThis Social Bookmark Button