datagrid binding problem

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • CreativeMind

    datagrid binding problem

    i have a datagrid having a templatecolumn with
    headertext="Com pletionDate".I want to bind it with either column
    'CompletionDate '(datetime) or 'IsReady'(bit). If 'Isready' value is
    false, then Row of datagrid show CompletionDate otherwise show string
    'Ready' if 'IsReady' is true. e.g, if there are 100 rows in grid, then
    completiondate column may consist of some values as dates and some
    values as 'Ready' and some may be null. how can i ?
  • Munna

    #2
    Re: datagrid binding problem

    On Jun 6, 12:54 pm, CreativeMind <aftab.pu...@gm ail.comwrote:
     i have a datagrid having a templatecolumn with
    headertext="Com pletionDate".I want to bind it with either column
    'CompletionDate '(datetime) or 'IsReady'(bit). If 'Isready' value is
    false, then Row of datagrid show CompletionDate otherwise show string
    'Ready' if 'IsReady' is true. e.g, if there are 100 rows in grid, then
    completiondate column may consist of some values as dates and some
    values as 'Ready' and some may be null. how can i ?
    Hi,

    Do it in itemdatabound of the grid...
    DataGrid.ItemDa taBound Event 's one of the major purpose is to support
    conditional formating



    Best of luck

    Munna



    Comment

    Working...