Can you get a mouse over to work in a datagrid cell

C

Craig G

reason i ask is

i have a column (Notes) which can have upto 500 characters in it. so its too
big to display the whole field in the grid. so what i have done is placed a
button in the template column which when clicked displays the full content
of the field in a label below the grid. but what i would like is if the user
moused over the button then it would show say the first 100char of the field
in a tooltiptext sort of display

is this possible?

Cheers,
Craig
 
E

Eliyahu Goldin

Craig,

In ItemDataBound event get the first 100 characters of the field value and
assign them to the cell's ToolTip property.

Eliyahu
 

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

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top