Win a copy of Terraform in Action this week in the Cloud forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • Rob Spoor
  • Bear Bibeault
Saloon Keepers:
  • Jesse Silverman
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • Al Hobbs
  • salvin francis

GridView Reference and settings Web Form

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello, I recently joined this amazing forum to seek help with my C#. NET code in relation to GridView in the ASP.NET Language.

SO, previously, I could use the same syntax when I did the DataGrid in WebForm, but however, I am getting an error when I convert that Gridview from Webform to Web Application local host.

The errors in the screenshot did not happen when I utilized  public void ExportToExcel ( DataGridView DataGridView) Method and header. Any idea if the below method is the same as that?

But, since I am using a local host server, I cannot utilize the DataGridView method.

 
Bartender
Posts: 575
14
IntelliJ IDE Spring Fedora
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You need to post the code not an image
 
Al Hobbs
Bartender
Posts: 575
14
IntelliJ IDE Spring Fedora
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Your problem is that your function is dependent on datagridview.  Obviously there are other cases where you want to use the same logic but it's not always using datagridview.  You need to remove the dependency on datagridview.
 
reply
    Bookmark Topic Watch Topic
  • New Topic