or
private void grdPirteyMenahel_RowValidating(object sender, RowValidatingEventArgs e) { try { Cursor.Current = Cursors.WaitCursor; if (e.Row != null) { //Generate a service to connect to DB var factory = new MezumanimChannelFactory<IKerenService>(ServiceConsts.SERVICE_KEREN); var service = factory.CreateChannel(); string sError = string.Empty;//here I call a SP in the database that check if the dates are correct (column of dates are call it "MiTaarich" and "AdTaarich".//The SP return a String with the error, if there is no error it will return and empty string sError = GetErrorPirteySacharMenahel(Convert.ToDateTime(e.Row.Cells["MiTaarich"].Value), Convert.ToDateTime(e.Row.Cells["AdTaarich"].Value), Convert.ToInt32(e.Row.Cells["Kod"].Value)); if (sError != string.Empty) { e.Cancel = true; RadMessageBoxHelper.Alert(sError); } } } catch (Exception ex) { Elad.Mezumanim.Client.Utils.Log.LogUtil.write(ex); e.Cancel = true; RadMessageBoxHelper.Alert(Messages.DataDisplayError, this); } finally { Cursor.Current = Cursors.Default; } }DataTable dt = (grdPirteyMenahel.DataSource as DataTable);dt.RejectChanges();
var dg = new GridViewComboBoxColumn { DataSource = new[] { "Edit", "Delete" }, HeaderText = "Action", Name = "col_Action", Width = 80, AllowResize = true, FieldName = "gv_cmb_Action", SortOrder = RadSortOrder.None, AllowFiltering = false, AllowGroup = false, AllowSort = false, ReadOnly = false }; if (gv_Criteria.ColumnCount != 9) { gv_Criteria.Columns.Insert(8, dg); }X - 3: 23
Y - 3: 7
row = New TableRowcell = New TableCell()p = New Paragraph()sp = New Span()sp.Text = "Benefit Start"sp.UnderlineType = UI.UnderlineType.Linep.Inlines.Add(sp)row.Cells.Add(cell)table.Rows.Add(row)The underline extends past the final character. See the attached 'underlineissue_richtextbox.jpg' for an example, this jpg also shows the same text/paragraph added to the section outside of a table and it works fine.
The problem is even worse when I export the document to a PDF as all the underlines are too wide. See the second attachment for an example.
Is there a work around for this issue or am I doing something wrong?