Clearing a datagrid for reuse???? 
Author Message
 Clearing a datagrid for reuse????

Hi,
I have tried all off the following;

fldDataTable.Dispose()
fldDataTable.Rows.Clear()
fldDataTable.Columns.Clear()
fldDataTable.DataSet.Tables.Clear()
dataColumn.Dispose()
DataSet1.Dispose()
DataGrid1.SetDataBinding(DataSet1, "")

But my datagrid reuses the data that I had in it initialy.
I am building the rows from a string in a variable, all my variables are
reset when the Sub ends.



Wed, 28 Jan 2004 19:13:12 GMT  
 Clearing a datagrid for reuse????
Try this.

DataGrid1.ResetText()
DataSet1.Clear()

Hope this helps.

Joanna

Quote:
>-----Original Message-----
>Hi,
>I have tried all off the following;

>fldDataTable.Dispose()
>fldDataTable.Rows.Clear()
>fldDataTable.Columns.Clear()
>fldDataTable.DataSet.Tables.Clear()
>dataColumn.Dispose()
>DataSet1.Dispose()
>DataGrid1.SetDataBinding(DataSet1, "")

>But my datagrid reuses the data that I had in it initialy.
>I am building the rows from a string in a variable, all
my variables are
>reset when the Sub ends.

>.



Sun, 01 Feb 2004 23:45:10 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. How can i clear the MSHFLEXGRID without CLEAR - Como limpar a GRID sem usar CLEAR

2. Need some help with DataGrids (DataGrid-->DataGrid, DataGrid-->Dataset, DataGrid-->XML)

3. How do you clear a datagrid?

4. Clear datagrid

5. Clearing a datagrid

6. Clear DataGrid in MSChart

7. Clear DataGrid Rows

8. How to clear contents of a DataGrid?

9. DataGrid Clear Fields

10. Bookmark collection with DataGrid control not cleared

11. Clearing a Bound DataGrid

12. Listview1.listitems.clear does not clear

 

 
Powered by phpBB® Forum Software