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
650
How to make a Column Readonly Ultraweb 8.1
posted

Good Day All

i tried to google and i got Win Examples and that did not work for me. Am using version 8.1 of ultrawebgrid and i want to make  3 Columns as read only.

Thanks

Parents
No Data
Reply
  • 2907
    Verified Answer
    posted

    Hi,

     

    You can use AllowUpdate property of column object. You can set this property after grid is bound with data source.

     

    Try following code

     

    protected void grid_InitializeLayout(object sender, LayoutEventArgs e)

        {

            grid.Columns[0].AllowUpdate = AllowUpdate.No;

            grid.Columns[1].AllowUpdate = AllowUpdate.No;

        }

     

    Let me know if this helps you.

     

    Greetings

     

Children