Click here to Skip to main content
15,895,142 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: crystal report Pin
thatraja24-Feb-14 4:06
professionalthatraja24-Feb-14 4:06 
QuestionHow to develop a Website Pin
damiend12323-Feb-14 19:36
damiend12323-Feb-14 19:36 
AnswerRe: How to develop a Website Pin
Kornfeld Eliyahu Peter23-Feb-14 20:56
professionalKornfeld Eliyahu Peter23-Feb-14 20:56 
QuestionTransactions in Web applications Pin
Snesh Prajapati23-Feb-14 3:07
professionalSnesh Prajapati23-Feb-14 3:07 
AnswerRe: Transactions in Web applications Pin
thatraja1-Mar-14 20:52
professionalthatraja1-Mar-14 20:52 
AnswerRe: Transactions in Web applications Pin
Snesh Prajapati1-Mar-14 23:24
professionalSnesh Prajapati1-Mar-14 23:24 
Questionbinding gridview Pin
ptvce22-Feb-14 17:52
ptvce22-Feb-14 17:52 
AnswerRe: binding gridview Pin
Ahmed Bensaid26-Feb-14 2:52
professionalAhmed Bensaid26-Feb-14 2:52 
Hi,
You need to add a RowDataBound to your GridView.
Then, in the GridView_RowDataBound(object sender, GridViewRowEventArgs e) method, you'll be able to access e which will provide you with access to the individual cells of that row where you can specify a formatter.

Example :
C#
protected void OnRowDataBound(object sender, GridViewRowEventArgs e)
{
    GridViewRowEventArgs ea = e as GridViewRowEventArgs;
    if (ea.Row.RowType == DataControlRowType.DataRow)
    {        
        DataRowView drv = e.Row.DataItem as DataRowView;
        Object ob = drv["Phone"];
        if (!Convert.IsDBNull(ob))
        {
            Int64 iParsedValue = 0;
            if (Int64.TryParse(ob.ToString(), out iParsedValue))
            {
                TableCell cell = ea.Row.Cells[4];
                cell.Text = String.Format(System.Globalization.CultureInfo.CurrentCulture, 
                    "{0:(###) ###-####}", new object[] { iParsedValue });
            }
        }
    }
}

Light or darkness, we must choose ...

QuestionPass textbox value from child window to parent page in asp with out post back in parent Pin
Member 1023254621-Feb-14 20:24
Member 1023254621-Feb-14 20:24 
QuestionWord 2010 Protected View Annoyances Pin
dannomanno21-Feb-14 4:03
dannomanno21-Feb-14 4:03 
AnswerRe: Word 2010 Protected View Annoyances Pin
Richard Deeming21-Feb-14 5:26
mveRichard Deeming21-Feb-14 5:26 
GeneralRe: Word 2010 Protected View Annoyances Pin
dannomanno21-Feb-14 6:04
dannomanno21-Feb-14 6:04 
GeneralRe: Word 2010 Protected View Annoyances Pin
Richard Deeming21-Feb-14 6:34
mveRichard Deeming21-Feb-14 6:34 
QuestionHow to test load of a web service ???????? Pin
Amit Saini20-Feb-14 22:39
professionalAmit Saini20-Feb-14 22:39 
SuggestionRe: How to test load of a web service ???????? Pin
Richard MacCutchan21-Feb-14 0:40
mveRichard MacCutchan21-Feb-14 0:40 
AnswerRe: How to test load of a web service ???????? Pin
Ahmed Bensaid26-Feb-14 2:56
professionalAhmed Bensaid26-Feb-14 2:56 
GeneralRe: How to test load of a web service ???????? Pin
Amit Saini29-Mar-14 20:41
professionalAmit Saini29-Mar-14 20:41 
QuestionMVC AntiForgeryToken and Partial Views Pin
littleGreenDude20-Feb-14 8:17
littleGreenDude20-Feb-14 8:17 
QuestionManaging XML Files Pin
Fred283419-Feb-14 2:54
Fred283419-Feb-14 2:54 
QuestionAsp.Net Notifiation Push Pin
Zeyad Jalil19-Feb-14 0:55
professionalZeyad Jalil19-Feb-14 0:55 
AnswerRe: Asp.Net Notifiation Push Pin
Richard Deeming19-Feb-14 2:33
mveRichard Deeming19-Feb-14 2:33 
QuestionSending free sms through ASP.Net Pin
Sharath Madhav18-Feb-14 23:34
Sharath Madhav18-Feb-14 23:34 
AnswerRe: Sending free sms through ASP.Net Pin
Tom Marvolo Riddle19-Feb-14 0:05
professionalTom Marvolo Riddle19-Feb-14 0:05 
QuestionREST service using classic ASP Pin
Subin Mavunkal18-Feb-14 22:00
Subin Mavunkal18-Feb-14 22:00 
SuggestionRe: REST service using classic ASP Pin
Richard Deeming19-Feb-14 2:31
mveRichard Deeming19-Feb-14 2:31 

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.