I have a mail table in DB. There is the IsReaded field in mail table (0=readed, 1 = unreaded)
I select some records (with IsReaded field) and bound it to the RadGrid. But I want bold the rows which its IsReaded field is 1.
May anyone help me, how and in which event can I fix it?
Best regards. Morteza
4 Answers, 1 is accepted
I hope that helps.
I don't know if your isReaded column is an int or bit, so you can change the casting and condition accordingly. Also, make sure you have isReaded in the DataKeyValues list.
I did this before. but " grditem.GetDataKeyValue("isReaded") " returns null . may u explain more about DataKeyValues list, please.
Have you set the the data-field 'isReaded' in the DataKeyNames property of MasterTableView like below?
Or you can directly access the cell value using ColumnUniqueName.