Aspdotnet-Suresh

aspdotnet-suresh offers C#.net articles and tutorials,csharp dot net,asp.net articles and tutorials,VB.NET Articles,Gridview articles,code examples of asp.net 2.0 /3.5,AJAX,SQL Server Articles,examples of .net technologies

Showing posts with label Gridview. Show all posts
Showing posts with label Gridview. Show all posts

Dynamically create datable and bind to gridview in asp.net

Mar 22, 2012 9 comments
Introduction:

Here I will explain how to create datatable dynamically and bind to gridview in asp.net using c#, vb.net or create temporary table and bind data to columns in datatable dynamically using asp.net in c#, vb.net.


Description:

In Previous posts I explained lot of articles regarding
Asp.net, Gridview, SQL Server, Ajax, JavaScript etc. In many of articles I used datatable to bind data from database but in one situation I got requirement like dynamically build and bind data to datatable in asp.net.

save/upload files in folder and download files from folder in asp.net

Feb 27, 2012 98 comments
Introduction:

In this article I will explain how to save/upload files in folder and download files from folder system when click on link in gridview using asp.net.


Description:
  
In many websites we will see download link whenever we click on that we will have a chance to download that files into our system.

Asp.net confirmation box with yes/no button options using modalpopup

Dec 23, 2011 15 comments
Introduction: 

Here I will explain how to implement confirmation box with Yes/No button options and change the style of Confirmation box in asp.net using Ajax ModalPopupExtender.

Description:

In many situations we will use confirmation box ex: During delete one record we will ask confirmation of user like “Are you sure you want to delete record?” if user clicks on Ok button we will delete particular record otherwise if clicks on Cancel button then we won’t delete users. Initially our default confirmation box will be like this

Search Records In GridView And Highlight Results Using ASP.NET | how to highlight search results in gridview using asp.net

Dec 3, 2011 72 comments
Introduction:

In this article I will explain how to search records in gridview and highlight search keywords in gridview using asp.net.


Description:

In Previous post I explained clearly about how to filter gridview records with dropdownlist selection. Now I will explain how to implement search functionality for gridview and highlight search keywords in gridview using asp.net. 

Asp.net filter gridview records with dropdownlist selection | Gridview Filter Expression with dropdownlist using asp.net | Beautiful style for Gridview using css

Nov 12, 2011 21 comments
Introduction:

In this article I will explain how to change the appearance of gridview and how to filter gridview records with dropdownlist selection using asp.net.


Description:

In Previous posts I explained lot of articles regarding
Gridview. Now I will explain how to implement beautiful looking gridview and filter gridview records with dropdownlist selection using asp.net. To implement this first design the table in database and give name UserInfomation

how to implement cascading dropdownlist in gridview using asp.net

10 comments
Introduction:

In this article I will explain how to implement cascading dropdownlist in gridview using asp.net. 


Description:

In Previous posts I explained clearly how to implement ajax cascading dropdownlist using asp.net  and lot of articles regarding
Gridview. Now I will explain how to implement cascading dropdown list in gridview using asp.net. Here I am using previous implemented article ajax cascading dropdownlist in asp.net to bind data to dropdownlists. 

JQuery scrollable gridview with fixed header in asp.net

Nov 9, 2011 76 comments
Introduction:

In this article I will explain how to implement scrollable gridview with fixed header in asp.net using JQuery. 


Description:

In Previous posts I explained lot of articles regarding Gridview. Now I will explain how to implement scrollable gridview with fixed header in asp.net. I have one gridview that contains lot of records and I used paging for gridview but the requirement is to display all the records without paging. I removed paging at that time gridview occupied lot of space because it contains more records to solve this problem we implemented scrollbar.  After scrollbar implementation if we scroll the gridview we are unable to see Gridview header. 

how to bind generic list to gridview | Bind Database values to Generic list using asp.net | Binding custom generic class list to Gridview

Jul 8, 2011 13 comments
Introduction

Here I will explain how to bind generic list to gridview and how to bind database values to generic list using asp.net.

Description:

In previous article I explained clearly about what is WCF and how we can use WCF in our applications. Now I will explain how to use Lists in our application to bind data to gridview and I will explain how to bind database values to generic list using asp.net. 

how to show the tooltip for gridview header columns using asp.net

May 28, 2011 6 comments
Introduction:

Here I will explain how to show the tooltip for gridview header columns using asp.net.


Description:

In previous article I explained clearly how to show tooltip for gridview rows and columns and in another post I explained clearly show up and down arrows for gridview sorting . Now I will explain how to show tooltip for gridview headers using asp.net with slight code modification using above posts. To display tooltip for gridview header first design your aspx code like this

How To Set a Date Format In GridView Using ASP.NET or How to format datetime in gridview boundfield and template columns

May 15, 2011 25 comments
Introduction:

Here I will explain how to set date format in gridview using asp.net

Description:

In previous post I explained
how to convert datetime to date in sql server . Now I will explain how to format date in gridview. In many situations we will bind date and currency values to gridivew at that time our gridview is something like this

how to export gridview data to PDF using asp.net or Export gridview data to PDF using asp.net

Apr 12, 2011 158 comments
Introduction:

Here I will explain how to export gridview data to PDF using asp.net.


Description:

In my previous articles I explained clearly how to export gridview data to excel or word and how to export gridview data to CSV file . Now I will explain how to export gridview data to PDF using asp.net. In asp.net we don’t have direct feature to export gridview data to PDF for that reason here I am using third party library ITextSharp reference. The dll is available here ITextSharp first download dll from this site after that create one new website in visual studio and add ITextsharp dll reference to newly created website after that design aspx page like this 

how to export gridview data to CSV file or Export Gridview data to CSV file using asp.net

Apr 3, 2011 15 comments
Introduction:

Here I will explain how to export gridview data to CSV or text document using asp.net.


Description:

I have one gridview that has filled with user details now I need to export gridview data to CSV file or text file. First we need to learn what is CSV file? CSV file is a text based file in which data are separated by comma and it can be opened by Excel. Each row of data in CSV file separated with commas.

RegisterForEventValidation can only be called during Render();

Apr 2, 2011 37 comments

Introduction:

Here I will explain how to solve the problem RegisterForEventValidation can only be called during Render(); during export of gridview to excel or word or csv using asp.net.

Description:

In previous post I explained clearly how to show export gridview data to excel,word,notepad and csv using asp.net Export gridview data to Excel,Word . During export a gridview data to excel, word, notepad or csv I got error like 

Export gridview data to Excel/word document in asp.net C#

80 comments
Introduction:

Here I will explain how to export gridview to Word or Excel document using asp.net in c#.


Description:

I have one gridview that has filled with user details now I need to export gridview data to word or excel document based on selection. To implement this functionality first we need to design aspx page like this 

Control 'gvdetails' of type 'GridView' must be placed inside a form tag with runat=server

Mar 30, 2011 27 comments
Introduction:

Here I will explain how to solve the problem
Control 'gvdetails' of type 'GridView' must be placed inside a form tag with runat=server during export of gridview to excel or word or csv using asp.net.

Description:

In previous post I explained clearly how to show export gridview data to excel,word,notepad and csv using asp.net Export gridview data to Excel,Word . During export a gridview to excel, word, notepad or csv I got error like 

Asp.net gridview custom paging example like Numeric, first, previous, next and last

Mar 26, 2011 13 comments
Introduction:

Here I will explain how to show the gridview with custom paging like numeric first, previous, next, last in asp.net

Description:

In previous post I explained
gridview with different types of paging with available paging options in gridview but now if we want to display the gridview with custom paging like Numeric, first, previous, next and last for that we need to write some code to show the gridview paging like what we except and here I used gridview with pagertemplate to create the paging in gridview effectively for that create new website and design the aspx page like this

Ajax ModalPopUpExtender Example to edit the gridview row values in asp.net

Mar 15, 2011 97 comments
Introduction:

Here I will explain how to show the modal popup using Ajax ModalPopupExtender to edit Rows in a GridView using asp.net.

Description:

In my previous post I explained clearly how to show the gridview images with lightbox effect. Same way we can display popup using Ajax futures. In ajax we have ModalPopup extender to display data in Popup here I am doing sample to show pop up whenever user clicks on Edit button in gridview at that time I will display that particular gridview row data into Modal popup for that First design table in your database like this

Gridview paging example in asp.net with Numeric, NextPrevious, NextPreviousFirstLast, NumericFirstLast

Mar 8, 2011 29 comments
Introduction:

Here I will explain how to show the gridview with different type of paging in asp.net.

Description:


I have one gridview with multiple number rows at that time I tried to set paging for my gridview for that I have search gridview properties at that time I found different type of paging mode styles are available in gridview for paging those are

1.      1) Numeric
2.      2) NextPrevious
3.      3) NextPreviousFirstLast
4.      4) NumericFirstLast

Display Gridview images with lightbox effect whenever user clicks on images in gridview using asp.net

Mar 5, 2011 24 comments
Introduction:

In this article I will explain how to show gridview images with lightbox effect using asp.net.

Description:
  
In my previous article I explained clearly how to insert images into our images folder and images path in database and display images in gridview from folder based on imagepaths exists in database for that check this link
how to insert images into folder and imagespath into database and display images I gridview .After inserting images in folder and displayed in gridview I extended functionality to display gridview images using lightbox effect if user click on any image in gridview at that time we need to show that images with lightbox effect. To display images in gridview with lightbox effect we need to design our aspx page like this

how to save images into folder and images path in database and display images from folder in gridview based on images path in database using asp.net

Mar 3, 2011 122 comments
Introduction:

In this article I will explain how to insert images into our project folder and display the images from folder in gridview based on images path in database using asp.net.

Description:
  

In my previous article I explained clearly how to insert images into database and display images from database into gridview. Now I will explain how to insert images into our project folder and insert images path into database and display images in gridview from images folder based on Images path in database. For that first create new website after that right click on your website and add new folder and give name as Images because here I used same name for my sample if you want to change folder name you need to change the images folder name in your code behind also
first design table in your database like this to save images path in database.

© 2015 Aspdotnet-Suresh.com. All Rights Reserved.
The content is copyrighted to Suresh Dasari and may not be reproduced on other websites without permission from the owner.