Tooltip in Datagrid cell?

L

Lars Netzel

I need to have a Tooltip on each Cell in a datagrid, I don't know how to do
this. I'm using Styles to the datagrid (Which I asume most people do since
you never need to show all the fields from the source).

The Cell I want a tooltip on is styled with a textboxcolumn and the TextBox
Object in that TextBox Column doesn't seem to have a property called
Tooltip.. so i'm sorta stranded here...

Best regards/
Lars
 
C

Cor Ligthert

Lars,

Do you mean cell or column?

The first is impossible in my opinion, for the second I have a sample what
easily is to use however it works only in a selected cell. (I have to modify
it again when you need it, so let me know if that is what you want)

And winform of course.

Cor
 
L

Lars Netzel

A cell... since it's a textbox in the cell (using a style) i don't see why
it should be impossible...

/Lars

I would really appriciate
 
C

Cor Ligthert

Lars

Because it is known how many columns there are normaly but not how many
rows.

(Or you should add the tooltip from every item in your database as an extra
item. I think that it in that way can be done creating the same amount of
not visible columns and than use those)

Cor
 
K

Ken Tucker [MVP]

Hi,

http://www.syncfusion.com/FAQ/WinForms/FAQ_c44c.asp#q843q

Ken
----------
I need to have a Tooltip on each Cell in a datagrid, I don't know how to do
this. I'm using Styles to the datagrid (Which I asume most people do since
you never need to show all the fields from the source).

The Cell I want a tooltip on is styled with a textboxcolumn and the TextBox
Object in that TextBox Column doesn't seem to have a property called
Tooltip.. so i'm sorta stranded here...

Best regards/
Lars
 
C

Cor Ligthert

Hi Ken,

I did not know that hittestinfo, that makes things again a lot simpler.

Thanks

Cor
 

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