How to remove a cell value in datagrid?

Hi,
How could i programmatically delete the value in a data grid cell. 

I need to add a function to the datagrid to be able to 
delete/remove the current cell value by pressing a key. 
Following statement clear the cell but in visual mode ( on 
Screen) you still can see the value. So, this doesn't work 
for me. 

datagrid1.Item(...row_number...,...col_number...)=Nothing 

Please advise. 



Answer this question

How to remove a cell value in datagrid?

  • SriDirectX

    i tried the same one( ...= "" ) as well with no success. There are two issues: First, the value doesn't remove virtually, means you can still see the value on the screen unless tab out ( i guess ) . Second, if the datatype is like dateTime, then will receive an error  .
  • abohmza

    Hi,

    In my datagrid I used this line to delete a value in a cell:

    Me.datagrid1.Item(row_number, column_number) = ""

    Hope this helps

  • How to remove a cell value in datagrid?