Hi Haneef,
Thanks For your reply. But I Need set the Background color in the runtime Means i Have to check the cells Status means Editable or NotEditable. How to check it out its editable or Not Editable at runtime. Please resolve the problem.
Regards
Tannearu
>Hi Haneef,
Thanks for your reply. But i Need to find out each cells Behaviour and set color at the load of the grid it self. is ther any code sniffet is avilabe give me reply asap.
Cheers
Tannearu Hazartahaiah
>Hi Haneef,
Thanks for your Reply. I Need Particular Solution following criteria.
I check the progrmatically about cell behaviour and Change his backround Color. I don't want set Design time values.
I nedd check at runtime about the cell type is read only and Set Background Color. Please help me. This urgent.
Thanks
Tannnearu Hazartahaiah
>Hi Tannearu,
To set cell specific properties in a GridDataBoundGrid, you must catch the PrepareViewStyleInfo event (or Model.QueryCellInfo event). In your handler, you check e.RowIndex and e.ColIndex, and if these point to the cell you want to change, you set e.Style.BackColor/Style.Readonly to the value you want.
Please refer to the following KBs for more details.
How do I change the Backcolor of a single cell in a GridDataBoundGrid How do I make the Cells Read-only in GridDataBoundGrid?
Best Regards,
Haneef