Server : Apache/2.4.43 (Win64) OpenSSL/1.1.1g PHP/7.4.6 System : Windows NT USER-PC 6.1 build 7601 (Windows 7 Professional Edition Service Pack 1) AMD64 User : User ( 0) PHP Version : 7.4.6 Disable Function : NONE Directory : C:/Program Files (x86)/Microsoft Office/OFFICE11/FPCLASS/ |
void Item_Bound(Object sender, DataGridItemEventArgs e) { //v1.0 if(sender is DataGrid) { TableCellCollection cells; DataGridColumnCollection columns; int i; cells = e.Item.Cells; columns = ((DataGrid)sender).Columns; for( i = 0 ; i < cells.Count ; i++) { if(columns[i] is BoundColumn && !cells[i].Text.Equals(" ")) { cells[i].Text = Server.HtmlEncode( cells[i].Text ); } } } }