Loading
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Upendra Pratap ShahiRank #329 · 7.5K reputationPosted Jun 8, 2015, 3:05 AM EDT
selvi subramanianRank #2,007 · 723 reputationPosted Jun 8, 2015, 3:22 AM EDT
Compilation Error
Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.Compiler Error Message: CS1729: 'System.Drawing.FontStyle' does not contain a constructor that takes '2' arguments
Source Error:
Line 38: // this.GridView1.DefaultCellStyle.Font = new Font("Elfring Bar Code 39 d Hb", 15); Line 39: Line 40: this.GridView1.RowStyle.Font = new FontStyle("Elfring Bar Code 39 d Hb", 15); Line 41: Line 42: // GridView1.RowStyle.Font.Names = FontNamesConverter.StandardValuesCollection("Elfring Bar Code 39 d Hb");Source File: d:\Modified\bramandam site\barco.aspx.cs Line: 40
Upendra Pratap ShahiRank #329 · 7.5K reputationPosted Jun 8, 2015, 3:24 AM EDT
selvi subramanianRank #2,007 · 723 reputationPosted Jun 8, 2015, 3:27 AM EDT
am getting this errror please check it
Compilation Error
Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.Compiler Error Message: CS1061: 'System.Web.UI.WebControls.GridView' does not contain a definition for 'DefaultCellStyle' and no extension method 'DefaultCellStyle' accepting a first argument of type 'System.Web.UI.WebControls.GridView' could be found (are you missing a using directive or an assembly reference?)
Source Error:
Line 36: { Line 37: Line 38: this.GridView1.DefaultCellStyle.Font = new Font("Elfring Bar Code 39 d Hb", 15); Line 39: Line 40:Source File: d:\Modified\bramandam site\barco.aspx.cs Line: 38
Version Information: Microsoft .NET Framework Version:2.0.50727.3655; ASP.NET Version:2.0.50727.3658