how to change the filed while showing on the grid?

Posted by rockers on Stack Overflow See other posts from Stack Overflow or by rockers
Published on 2010-06-11T18:08:49Z Indexed on 2010/06/11 18:12 UTC
Read the original article Hit count: 207

Filed under:

helo friends, I am new to Asp.net mvc..

I have a column called Indicator in the data base..that has Y or N

this is the code I am using to get the field from data base..

  Indicator= !dr.IsDBNull(8) ? dr.GetString(8) : null,

In my entity class i have the filed

 public string Indicator
        {
            get;
            set;
        }

while to assing the grid I am doing soemthing like this

  var result = (from e in A.List.AsQueryable()
                          select new
                          {

                              Indicator= e.Indicator,

                          });

            return gridModel.ListGrid.DataBind(result);

But on the grid I am seeing Y and N.. but Yesterda of that if it return Y I need to show them YES if it is N i need to show them NO where do I need to change this?

thanks

© Stack Overflow or respective owner

Related posts about asp.net-mvc