Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
25
Programmatically set Readonly attribute
posted

I want to make entire row readonly based on particular column value of a row.

Suppose if I want to make 3rd row readonly in a webdatagrid with 5 rows, if 2nd column in each row contains value "1", I need to make those readonly.

Can you please provide solution asap.

Thanks

Parents
No Data
Reply
  • 2525
    posted

    Hello,

    You can look into the solution provided in this forum thread for details on how to make a row read only:

    http://ko.infragistics.com/community/forums/t/84204.aspx

    To summarize, the EnteringEditMode client side event is cancellable by passing true to the set_cancel function of the eventArgs object. In this case, the value of the cells would be obtained and depending on the value the set_cancel function will be invoked and cancelling the enteringEditMode event. 

    Let me know if you have any questions.

Children
No Data