Clearing data from Grid 
Author Message
 Clearing data from Grid

Hi

Does anyone know hoow to clear the contents of a grid.

Thanks for helping



Sat, 03 Jan 1998 03:00:00 GMT  
 Clearing data from Grid


Quote:
>Hi

>Does anyone know hoow to clear the contents of a grid.

>Thanks for helping

The following should do the trick.

      ' Select all non-fixed grid cells.
      Grid1.SelStartCol = Grid1.FixedCols
      Grid1.SelStartRow = Grid1.FixedRows
      Grid1.SelEndCol = Grid1.Cols - 1
      Grid1.SelEndRow = Grid1.Rows - 1
      ' Clear the cells.
      Grid1.Clip = ""
      ' Clean up the grid.
      Grid1.Col = Grid1.FixedCols
      Grid1.Row = Grid1.FixedRows
      Grid1.SelEndCol = Grid1.SelStartCol
      Grid1.SelEndRow = Grid1.SelStartRow

--
Stephen Estes



Sun, 04 Jan 1998 03:00:00 GMT  
 Clearing data from Grid
Data1.Grid = ""
Data1.Refresh


Quote:

>Hi

>Does anyone know hoow to clear the contents of a grid.

>Thanks for helping



Tue, 06 Jan 1998 03:00:00 GMT  
 
 [ 3 post ] 

 Relevant Pages 

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

2. How do you clear a flex grid so that new data can be added

3. Clear a Data Grid

4. Binary Data in SQL 2000/Conver to Bitmap Data For Data Grid View

5. Clear Grid for Filterby Form

6. DoMenuItem Filter, Edit, Clear Grid

7. Clear Filter Grid in code

8. Clearing the contents of the grid control...

9. Clearing MSFlex Grid

10. clearing grid of contents...

11. how to clear the Grid control ?

12. clear content of Grid

 

 
Powered by phpBB® Forum Software