Datagrid

G

Guest

Hi Guys,
I have set the column size in datagrid to particular %age. Some of the text
going in those cells exceed the column size and therefore wraps into the
second line. Is there any way i could explicitly cut the rest of the line so
that it fits in one line?

Thanks

Manny
 
D

Dmitry Duginov

Manny Chohan said:
Hi Guys,
I have set the column size in datagrid to particular %age. Some of the text
going in those cells exceed the column size and therefore wraps into the
second line. Is there any way i could explicitly cut the rest of the line so
that it fits in one line?


This is rather HTML issue than DataGrid's one. And I doubt it's possible to
resolve it because you would have to take into account many factors: Browser
window size, Font size, etc...

Regards,
Dmitry
 
G

Guest

rather than being concerned about wrapping, you sound to be concerned about
the width of the column, aren't you?

if so, i don't know if there is a better way to doing it but if you are
using template columns instead of bound columns, you should be able to use
the Remove method of the string class.

you can do this at runtime or you can also perform this on the dataset.

hope this helps.
 

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

Similar Threads


Members online

No members online now.

Forum statistics

Threads
473,766
Messages
2,569,569
Members
45,043
Latest member
CannalabsCBDReview

Latest Threads

Top