本文整理汇总了C#中DevExpress.GetRowCellDisplayText方法的典型用法代码示例。如果您正苦于以下问题:C# DevExpress.GetRowCellDisplayText方法的具体用法?C# DevExpress.GetRowCellDisplayText怎么用?C# DevExpress.GetRowCellDisplayText使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类DevExpress
的用法示例。
在下文中一共展示了DevExpress.GetRowCellDisplayText方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: frmSendEmail
public frmSendEmail(long IDPhieu, string formClass, long NguoiNhan,
DevExpress.XtraGrid.Views.Grid.GridView gridViewMaster, bool UseExport)
{
if (Init(IDPhieu,formClass,NguoiNhan) == false) return;
string line = "______________________________________________________________________________";
if (UseExport)
{
string path = Path.GetTempFileName();
bool temp = gridViewMaster.OptionsPrint.PrintSelectedRowsOnly;
gridViewMaster.OptionsPrint.PrintSelectedRowsOnly = true;
gridViewMaster.OptionsPrint.AutoWidth = true;
gridViewMaster.ExportToHtml(path);
gridViewMaster.OptionsPrint.PrintSelectedRowsOnly = temp;
NoiDung.richEditControl.LoadDocument(path, DevExpress.XtraRichEdit.DocumentFormat.Html);
try
{
File.Delete(path);
}
catch
{
}
NoiDung.richEditControl.Document.InsertText(NoiDung.richEditControl.Document.Range.End, line);
}
else
{
int focus = gridViewMaster.FocusedRowHandle;
if (focus <= -1)
{
HelpXtraForm.CloseFormNoConfirm(this);
return;
}
NoiDung.richEditControl.Document.InsertText(NoiDung.richEditControl.Document.Range.Start,line);
NoiDung.richEditControl.Document.InsertParagraph(NoiDung.richEditControl.Document.Range.End);
foreach (GridColumn col in gridViewMaster.VisibleColumns)
{
NoiDung.richEditControl.Document.InsertSingleLineText(
NoiDung.richEditControl.Document.Range.End,
col.Caption + ": " + gridViewMaster.GetRowCellDisplayText(focus, col));
NoiDung.richEditControl.Document.InsertParagraph(NoiDung.richEditControl.Document.Range.End);
}
NoiDung.richEditControl.Document.InsertText(NoiDung.richEditControl.Document.Range.End,line);
}
}
示例2: GetCellHintText
private string GetCellHintText(DevExpress.XtraGrid.Views.Grid.GridView view, int rowHandle, DevExpress.XtraGrid.Columns.GridColumn column)
{
string ret = view.GetRowCellDisplayText(rowHandle, column);
foreach(DevExpress.XtraGrid.Columns.GridColumn col in view.Columns)
if ( col.VisibleIndex < 0 )
ret += string.Format("\r\n {0}: {1}", col.Caption, view.GetRowCellDisplayText(rowHandle, col));
return ret;
}