and null fields in a datagrid

Ask a Question related to ASP.NET Data Grid Control, Design and Development.

  1. #1

    Default   and null fields in a datagrid

    in the itemDatabound event of a datagrid, both null fields and blank string
    come through as   in the e.items.cells field. Is there anyway to tell
    them apart?
    Thanks,
    T


    Tina Guest

  2. Similar Questions and Discussions

    1. #36974 [Asn->Csd]: ORA-01405: fetched column value is NULL on LOB fields in 10g
      ID: 36974 User updated by: crescentfreshpot at yahoo dot com Reported By: crescentfreshpot at yahoo dot com -Status: ...
    2. How insert null in numerics fields?
      Good morning, How insert null in numerics fields? I can't insert 0()zero and nor other number, because any positive number can be a possible code...
    3.   is not generated for null values when using a format string
      I have a DataGrid with which formats dates <ASP:TEMPLATECOLUMN SortExpression="EST_DATE" HeaderText="Est Date"> <ITEMTEMPLATE> <ASP:LABEL...
    4. #26351 [Opn->Bgs]: Incorrect handling of Null Fields/Numerical Fields with '0'
      ID: 26351 Updated by: iliaa@php.net Reported By: jabberwocky at ibplanet dot com -Status: Open +Status: ...
    5. #26351 [NEW]: Incorrect handling of Null Fields/Numerical Fields with '0'
      From: jabberwocky at ibplanet dot com Operating system: Any PHP version: 4.3.4 PHP Bug Type: MSSQL related Bug description: ...
  3. #2

    Default Re: &nbsp; and null fields in a datagrid

    Is there anything specific you're trying to accomplish by differentiating
    between the two? Under general scenarios, they would both be the same in
    the datagrid. But if you're looking to change the value in the datagrid
    based upon these values, you should check the corresponding value in the
    dataset, and not in the datagrid cell. You can access it in the
    ItemDataBound event with something like

    ds.Tables(0).Rows(e.Item.ItemIndex)

    HTH

    -Altaf [MVP]
    --------------------------------------------------------------------------------
    All that glitters has a high refractive index.
    [url]www.mendhak.com[/url]


    "Tina" <tinamseaburn@nospammeexcite.com> wrote in message
    news:eQfEAeD1FHA.2752@TK2MSFTNGP12.phx.gbl...
    > in the itemDatabound event of a datagrid, both null fields and blank
    > string
    > come through as &nbsp; in the e.items.cells field. Is there anyway to
    > tell
    > them apart?
    > Thanks,
    > T
    >
    >

    S.M. Altaf [MVP] Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139