Empting a datagrid before adding new items
-
Hi guys, am trying to empty my datagrid before i bind new records(items) I tried the following but they won't work:
myDataGrid.DataSource = null;
myDataGrid.DataBind();
or
myDataGrid.Dispose(); -
Hi guys, am trying to empty my datagrid before i bind new records(items) I tried the following but they won't work:
myDataGrid.DataSource = null;
myDataGrid.DataBind();
or
myDataGrid.Dispose();Even if you empty your grid it'll populate with the new records.then Why you want to empty datagrid before binding with new records?
Arun Jacob http://codepronet.blogspot.com/
-
Hi guys, am trying to empty my datagrid before i bind new records(items) I tried the following but they won't work:
myDataGrid.DataSource = null;
myDataGrid.DataBind();
or
myDataGrid.Dispose();From the example program in my reply to cheguri ...
DropDownList1.Items.Clear();
-
Hi guys, am trying to empty my datagrid before i bind new records(items) I tried the following but they won't work:
myDataGrid.DataSource = null;
myDataGrid.DataBind();
or
myDataGrid.Dispose();