-----------------------------------------------------------
New Message on BDOTNET
-----------------------------------------------------------
From: PKSPMR
Message 1 in Discussion
Hi All
I want my gridview columns to have fixed width. Even though data is long, i
want it to be shown only till the width permits. Further, I want to provide
tool tip, so user can see full value in that. I don't want wrap to happen.
Fixed width is working but data wraps. I tried all types. But no results.
This is what I tried:
I went to column's itemstyle and set width and wrap - Didn't work
Some one suggested doing this in RowDataboundEvent. So tried. Not working.
if (e.Row.RowType == DataControlRowType.DataRow)
{
string thistext = e.Row.Cells[2].Text.Trim();
thistext = "<SPAN
style=\"width:50px;overflow:hidden;text-overflow:ellipsis;\">" + "<NOBR>" +
thistext + "</NOBR></SPAN>";
e.Row.Cells[2].Text = thistext;
}
I appreciate your help.
Thanks,
Prathiba
-----------------------------------------------------------
To stop getting this e-mail, or change how often it arrives, go to your E-mail
Settings.
http://groups.msn.com/bdotnet/_emailsettings.msnw
Need help? If you've forgotten your password, please go to Passport Member
Services.
http://groups.msn.com/_passportredir.msnw?ppmprop=help
For other questions or feedback, go to our Contact Us page.
http://groups.msn.com/contact
If you do not want to receive future e-mail from this MSN group, or if you
received this message by mistake, please click the "Remove" link below. On the
pre-addressed e-mail message that opens, simply click "Send". Your e-mail
address will be deleted from this group's mailing list.
mailto:[EMAIL PROTECTED]