Hi All,
How can we just clear radgridview, clear row, column, relation also on their template ?. Then radgridview being like the first time it loaded when then application run. So we can define columns on it over and over. Instead of using those :
RadGridView1.DataSource = Nothing
template.DataSource = Nothing
template1.DataSource = Nothing
While Me.RadGridView1.Rows.Count > 0
Me.RadGridView1.Rows.RemoveAt(Me.RadGridView1.Rows.Count - 1)
End While
While Me.RadGridView1.Columns.Count > 0
RadGridView1.Columns.RemoveAt(Me.RadGridView1.Columns.Count - 1)
End While
While template.Rows.Count > 0
template.Rows.RemoveAt(template.Rows.Count - 1)
End While
While Me.RadGridView1.Relations.Count > 0
Me.RadGridView1.Relations.RemoveAt(Me.RadGridView1.Relations.Count - 1)
End While
Thanks in advance