I am new in VB2008. Could you guys please advice how I can programmtically delete/remove/clear the content of a cell of DataGridView?
Say,for example,I have the following code that populates with data in DataGridView. Now,how can I clear/delete the "Test4" text from the cell of DataGridView? The GridView is not bound to any database.
Any advice would be appreaciated.
Public Class Form1 Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load Dim dt As New DataTable dt.Columns.Add("income") dt.Columns.Add("income1") dt.Columns.Add("sum") dt.Rows.Add("Test1") dt.Rows.Add("Test2", "Test3") dt.Rows.Add("", "Test4") Me.DataGridView1.DataSource = dt End Sub End Class