crackyourinterview.com


To improves our performance please Like Share Subscribe(Will boost us)

How to Clear or blank the GridView data?
Question Posted on 03 Feb 2021Home >> DotNet >> ADO.NET >> How to Clear or blank the GridView data?

How to Clear or blank the GridView data?
Below are the different methods to clear or blank Gridview with very less line of code
(1)First Method
GridView1.DataSource = null;
GridView1.DataBind();

(2)Second Method
GridView1.Rows.Clear();
GridView1.Refresh();

(3)Third Method
dataGridView1.Rows.Clear()
dataGridView1.DataBind();

(4)Fourth Method
dataGridView.DataSource=null;
dataGridView.Rows.Clear();
0
0



.


Most Visited Questions:-

Deep Learning Questions Answers
Below are the different Deep Leaning Questions and answer a More...

Continuous Integration Questions Answers
Below are the 20 odd questions for CI or Continuous Integra More...

Derived relationships in Association Rule Mining are represented in the form of __________.
Derived relationships in Association Rule Mining are repres More...

What is Gulpjs and some multiple choice questions on Gulp
Gulpjs is an open source whihc helps in building Javascript More...

Microservices Architecture Questions Answers
Below are the different questions on Microservices Architec More...




Other Important Questions

Getting Error DataControlRowType does not found in dotnet GridView?

Connection and Disconnected Scenario in ADO.Net

Error illegal characters in path while reading xml from dataset

Code to apply distinct keyword record on dataset table

Define different execute methods of ADO.NET Command Object






@2014-2022 Crackyourinterview (All rights reserved)
Privacy Policy - Disclaimer - Sitemap