How to clear a datagrid on a button click?
You need to Clear the DataSource of the dadaGrid.
So try this:
dataSet1.Clear();
dataGrid1.DataSource = dataSet1.TableNameHere.DefaultView;
or
C#: dataGrid1.DataSource = null;
VB: dataGrid1.DataSource = nothing
Wednesday, 26 June 2013
Clear A Datagrid On A Button Click
Published June 26, 2013
Tags
Artikel Terkait
- Can we run DOT.NET in UNIX platform? One of the disadvantages of using Visual Studio.NET
- What is a CLR? Full form of CLR is Common Language Runtime and it forms the heart of the
- (A) What are different types of Assembly? There are two types of assembly Private and Pub
- 11. Can we use access modifier on static constructor? a ) No 12. How many static const
- What is a CLS(Common Language Specification)? This is a subset of the CTS which all
- 1. What are the main properties of object oriented programming? There are mainly 3
Subscribe to:
Post Comments (Atom)
EmoticonEmoticon