asp.net - Visual Basic.Net DataGrid Display zero(0) as - -
in short have datagrid.i retrieving details access database.a number retrieved can zero(0).
is there anyway display zero(0) "-" in datagrid column , @ same time if number not 0 format using "f4"
you use datagridview
instead of datagrid
, handle cellformatting
event, see how to: customize data formatting in windows forms datagridview control , like:
if e.value = 0 # ommiting type-/errorchecking brevity e.value = "-" end if
Comments
Post a Comment