is this possible in a datagrid

  • Thread starter Thread starter Craig G
  • Start date Start date
C

Craig G

could i have

the scenario:-
i have a grid that has to contain a notes column. but this notes column is
HUGE!! and takes up far too much space. so i need alternate solutions

the idea:-
in the item template column i have a button and a label (visible = false)
the label contains the notes data. on clicking of the button a textbox is
displayed below the grid to show the notes. sounds simple enough

but this grid is also editable. so i need to be able to display the notes
details and then return the value of the textbox into the hidden notes label
of the row im editing

how would i go about passing the value of the texbox back into the row im
editing??

or have you an other ideas?????

Cheers,
Craig
 
Hi Craig,

Another solution is in reformat notes column in
datagrid_ItemDataBound event.
It looks like this
noteCell.Text = "<div title='" + whole note + "'>" + short
note + "</div>";

This way notes column normally only shows short note, once
mouse over the short note, it shows whole note.

Hope it's helpful to you.

Elton Wang
(e-mail address removed)
 

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

Back
Top