Click here to Skip to main content
16,004,927 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionHow to avoid refresh when postback to ASPX Pin
RobertGMiller1-Mar-07 3:47
RobertGMiller1-Mar-07 3:47 
AnswerRe: How to avoid refresh when postback to ASPX Pin
Guffa1-Mar-07 5:06
Guffa1-Mar-07 5:06 
QuestionConfiguring Login using Visual Web Developer 2005 Express Pin
Giretharan1-Mar-07 3:37
Giretharan1-Mar-07 3:37 
AnswerRe: Configuring Login using Visual Web Developer 2005 Express Pin
badgrs1-Mar-07 5:17
badgrs1-Mar-07 5:17 
QuestionConstructor in a web service Pin
goldoche1-Mar-07 3:25
goldoche1-Mar-07 3:25 
AnswerRe: Constructor in a web service Pin
badgrs1-Mar-07 5:15
badgrs1-Mar-07 5:15 
QuestionResource file question Pin
VK-Cadec1-Mar-07 3:19
VK-Cadec1-Mar-07 3:19 
Questionurgent help required with this Wrapping Pin
anuparvathy1-Mar-07 2:35
anuparvathy1-Mar-07 2:35 
hi
i am doing a website in visual studio 2005.in my asp.net page i have got a grid view which takes the data from the database dynamically.i have given the following code:

protected void GridView1_DataBound(object sender, EventArgs e)
{
int i = ds.Tables[0].Rows.Count;
int j = ds.Tables[0].Columns.Count;

for (int k = 0; k < i; k++)
{
for (int l = 0; l < j; l++)
{
GridView1.Rows[k].Cells[l].Width = new Unit("50px");

}
}

}
i want the output in such a format that i dont want the data in the cell to go to the next line(i.e) it should not wrap the data in a cell. i want only the first 10 characters to appear in my cell and i want the rest to be truncated.i have tried to set wrap to be false also in the source code:

<rowstyle font-size="Medium" wrap="false">

but nothing seems to work. how do i wrap and truncate.
Please help me out. my deadline is nearing.Thanking in advance.
AnswerRe: urgent help required with this Wrapping Pin
Paddy Boyd1-Mar-07 2:51
Paddy Boyd1-Mar-07 2:51 
AnswerRe: urgent help required with this Wrapping Pin
Sylvester george1-Mar-07 2:56
Sylvester george1-Mar-07 2:56 
GeneralRe: urgent help required with this Wrapping Pin
anuparvathy1-Mar-07 18:57
anuparvathy1-Mar-07 18:57 
QuestionGetting screen resolutions Pin
Icarus1231-Mar-07 2:35
Icarus1231-Mar-07 2:35 
AnswerRe: Getting screen resolutions Pin
Sylvester george1-Mar-07 3:00
Sylvester george1-Mar-07 3:00 
GeneralRe: Getting screen resolutions Pin
Icarus1231-Mar-07 3:26
Icarus1231-Mar-07 3:26 
AnswerRe: Getting screen resolutions Pin
badgrs1-Mar-07 5:11
badgrs1-Mar-07 5:11 
Questionweb development Pin
princeally1-Mar-07 2:29
princeally1-Mar-07 2:29 
AnswerRe: web development Pin
Vasudevan Deepak Kumar4-Mar-07 2:18
Vasudevan Deepak Kumar4-Mar-07 2:18 
Question[Message Deleted] Pin
kiran011-Mar-07 2:19
kiran011-Mar-07 2:19 
AnswerRe: Plz help Pin
thomas_joyee1-Mar-07 5:17
thomas_joyee1-Mar-07 5:17 
GeneralRe: Plz help Pin
luckyve1-Mar-07 6:55
luckyve1-Mar-07 6:55 
GeneralRe: Plz help Pin
kiran011-Mar-07 23:10
kiran011-Mar-07 23:10 
AnswerRe: Plz help Pin
Vasudevan Deepak Kumar4-Mar-07 2:20
Vasudevan Deepak Kumar4-Mar-07 2:20 
Questionasp.net controls not displaying Pin
KwikBill1-Mar-07 2:14
KwikBill1-Mar-07 2:14 
AnswerRe: asp.net controls not displaying Pin
badgrs1-Mar-07 5:07
badgrs1-Mar-07 5:07 
GeneralRe: asp.net controls not displaying Pin
KwikBill1-Mar-07 5:45
KwikBill1-Mar-07 5:45 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.