How to make DataGrid column read only at runtime
-
Hi, I need to make a data grid column read only based on the value chosen in another column. I have custom table style for the grid, the column styles are of type DataGridTextBoxcolumn. I made the DataGridTextBoxColumn for the particular column read-only at runtime but that does not work. I would appreciate any help. Thanks
-
Hi, I need to make a data grid column read only based on the value chosen in another column. I have custom table style for the grid, the column styles are of type DataGridTextBoxcolumn. I made the DataGridTextBoxColumn for the particular column read-only at runtime but that does not work. I would appreciate any help. Thanks
-
Hi, I need to make a data grid column read only based on the value chosen in another column. I have custom table style for the grid, the column styles are of type DataGridTextBoxcolumn. I made the DataGridTextBoxColumn for the particular column read-only at runtime but that does not work. I would appreciate any help. Thanks
As usual. Create an inherited DataGridTextBoxColumn and override Edit method to call base.Edit(...) only if Your another column has appropriate values. Hi, AW
-
DataGridTextBoxColumn dgt = new DataGridTextBoxColumn(); dgt.ReadOnly = true; I'm not an expert yet, but I play one at work. Yeah and here too.
-
Thanks it worked! Earlier I intended to do the same but mistakenly instead of setting the readonly property of the textboxColumn I was setting the readonly property of the textbox in the textboxColumn. Suhas