default value to a datagrid column

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • mnishani
    New Member
    • Dec 2009
    • 2

    default value to a datagrid column

    Is there any way to add a default value to a datagrid column(for the whole column - eg : system date) . I'm using vs2003 and datagrid and using dataadapter to update the grid.


    Thanks in advance
  • sanjib65
    New Member
    • Nov 2009
    • 102

    #2
    Default value

    Default value to a Datagrid column usually stands for any empty, either numeric or DatTime, null/nothing value.

    Comment

    • mnishani
      New Member
      • Dec 2009
      • 2

      #3
      Thanks,

      can we set a default value of a column to the tablestyle

      Comment

      • sanjib65
        New Member
        • Nov 2009
        • 102

        #4
        Default value of DataColumn

        Default value of DataColumn means you have created DataColumn without specifying a value for a property.
        Following is the list:

        Datatype= string
        Maxlength=-1, (no maximum length check is performed)
        Unique=False, it allows duplicate values
        AllowDBNull=tru e, (DataColumn does not need to have any value)
        Caption=the DatColumn object which is ColumnName property value.

        Comment

        Working...