Wednesday, August 18, 2010

Please help me :how to check the data table value is null before binding into datagrid in asp.net?

Thanks in advancePlease help me :how to check the data table value is null before binding into datagrid in asp.net?
Actually, I can provide an overview bcoz I had forgot the exact eventhandler and attributes.





U have to code in DataGrid1_Bind(...) eventhandler


if(DataGrid1.Cell[i]==null)


DataGrid1.Cell[i]=/*ur value*/;Please help me :how to check the data table value is null before binding into datagrid in asp.net?
Use the IsDBNull method





if IsDBNull(value) = false then


'Add to datagrid


end if

No comments:

Post a Comment