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
490
set row in xamlwebgrid to read only based on a cell's value
posted

Hi,

can you please tell me how can I set row in xamlwebgrid to  read only based on a cell's value.

I want to do something like this

foreach (Row row in dataGrid.Rows)
                    {

if(row.Cells["abc"].Value == "Yes")

set the only the selected row to read only

}

Thanks for the help.

 

Parents
No Data
Reply
  • 40030
    Offline posted

    Hi, 

    There isn't a property on the grid to do so. 

    However, you can listen to the cell entering edit mode event, and cancel it based on the cell's value.

    Hope this helps, 

    -SteveZ

Children