Click here to Skip to main content
15,890,512 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: Adding and updating rows in a GridView Pin
Sandeep Mewara23-Apr-10 8:13
mveSandeep Mewara23-Apr-10 8:13 
QuestionTextBox Retains old data on dialog reloading Pin
FUNCTOR9922-Apr-10 14:27
FUNCTOR9922-Apr-10 14:27 
AnswerRe: TextBox Retains old data on dialog reloading Pin
Arindam Tewary22-Apr-10 22:15
professionalArindam Tewary22-Apr-10 22:15 
GeneralRe: TextBox Retains old data on dialog reloading Pin
FUNCTOR9923-Apr-10 3:32
FUNCTOR9923-Apr-10 3:32 
AnswerRe: TextBox Retains old data on dialog reloading Pin
Arindam Tewary25-Apr-10 10:31
professionalArindam Tewary25-Apr-10 10:31 
GeneralRe: TextBox Retains old data on dialog reloading Pin
FUNCTOR9926-Apr-10 3:36
FUNCTOR9926-Apr-10 3:36 
Questionhow to make gridview column text no wrap and how to create a resizable column header Pin
Andraw11122-Apr-10 10:27
Andraw11122-Apr-10 10:27 
AnswerRe: how to make gridview column text no wrap and how to create a resizable column header Pin
Jamil Hallal22-Apr-10 11:15
professionalJamil Hallal22-Apr-10 11:15 
Hi Andraw,

you can use the DataBound event of the Gridview as per the below code:

protected void gvProjects_RowDataBound(object sender, GridViewRowEventArgs e)
        {
            string projectName = ((DataRowView)e.Row.DataItem)["ProjectName"].ToString();
            if (projectName.Length > 200)
            {
                projectName.Substring(0, 200);
            }
        }


or you can loop over the list/DataTable (the Datasource) that you are using to bind your GridView and check the length of the project name and Substring it.
Regards,
Jamil

GeneralRe: how to make gridview column text no wrap and how to create a resizable column header Pin
Andraw11122-Apr-10 11:29
Andraw11122-Apr-10 11:29 
GeneralRe: how to make gridview column text no wrap and how to create a resizable column header Pin
Jamil Hallal22-Apr-10 11:44
professionalJamil Hallal22-Apr-10 11:44 
GeneralRe: how to make gridview column text no wrap and how to create a resizable column header Pin
Andraw11122-Apr-10 12:12
Andraw11122-Apr-10 12:12 
GeneralRe: how to make gridview column text no wrap and how to create a resizable column header Pin
Jamil Hallal22-Apr-10 12:36
professionalJamil Hallal22-Apr-10 12:36 
AnswerRe: how to make gridview column text no wrap and how to create a resizable column header Pin
Jamil Hallal22-Apr-10 11:20
professionalJamil Hallal22-Apr-10 11:20 
GeneralRe: how to make gridview column text no wrap and how to create a resizable column header Pin
Andraw11122-Apr-10 12:10
Andraw11122-Apr-10 12:10 
QuestionWeb Service Returns 2nd Half of Data [SOLVED] Pin
#realJSOP22-Apr-10 7:43
mve#realJSOP22-Apr-10 7:43 
QuestionI am lost !! Domain Service, RIA Service, WCF Service and regular Web Service ?? Pin
Nadia Monalisa22-Apr-10 5:37
Nadia Monalisa22-Apr-10 5:37 
Questiongrouping rows in gridview... Pin
pranavcool22-Apr-10 3:30
pranavcool22-Apr-10 3:30 
AnswerRe: grouping rows in gridview... Pin
Avinash_Mane22-Apr-10 4:20
Avinash_Mane22-Apr-10 4:20 
AnswerRe: grouping rows in gridview... Pin
Brij22-Apr-10 4:27
mentorBrij22-Apr-10 4:27 
Questiondropdownlist Pin
tek 200922-Apr-10 2:44
tek 200922-Apr-10 2:44 
AnswerRe: dropdownlist Pin
Sandesh M Patil22-Apr-10 3:10
Sandesh M Patil22-Apr-10 3:10 
QuestionRe: dropdownlist Pin
tek 200922-Apr-10 4:36
tek 200922-Apr-10 4:36 
AnswerRe: dropdownlist Pin
Swiftain22-Apr-10 5:08
Swiftain22-Apr-10 5:08 
AnswerRe: dropdownlist Pin
Sandeep Mewara22-Apr-10 5:10
mveSandeep Mewara22-Apr-10 5:10 
AnswerRe: dropdownlist Pin
Morgs Morgan22-Apr-10 22:16
Morgs Morgan22-Apr-10 22:16 

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.