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
482
How to enable / disable cell button in UltraWebGrid dynamically?
posted

I am adding a column in ultrawebgrid with column.type as Button. I want to enable / disable it depending upon the value in the data table coulmn which is bound to this ultrawebgrid.

 I will really appreciate a quick respnse.

Thanks,

SP.

Parents
  • 640
    posted

    So you want to enable/disable on a row by row basis?

    If so, you can loop through the rows in the grid and examine the values of the cell in question, then set the .AllowEditing property of the cell based upon the value it finds.

     air code:

    for each r as ultragridrow in yourgrid.rows

     if r.cells.fromkey("fieldkey").value = somevalue then

     r.cells.fromkey("buttonfield").allowediting = no

     end if

    next

Reply Children