Wrox Home  
Search P2P Archive for: Go

  Return to Index  

aspx_professional thread: Datagrid Empty/Null Values


Message #1 by mhtsoftware@h... on Wed, 5 Dec 2001 15:09:00
convert your datacontainer in the grid to a string and pass it to a 
function which does what you want. This is done when the datais binding.

funcZeroIfNull(<% #.... .ToString() %>)



> When I databind my database to a datagrid - the price field in the sql 
> 2000 table may contain 0 or null as a value.  
> 
> What is the value in a datagrid when this cell is blank?
> 
> I am getting at the datagrid cell by looking at:  
> 
> OrderGrid.items(x).cells(5).text
> 
> If the cell is blank I want to save a 0 else save the value.
> 
> Help in VB Please!
> 
> Thanks
> Greg Bloom

  Return to Index