private void gcMultiRow1_CellFormatting(object sender, CellFormattingEventArgs e)
{
if (e.Scope == CellScope.Row)
{
try
{
if (e.CellName == “summaryCell5” && e.Value != null)
{
int rowIndex = gcMultiRow1.CurrentCellPosition.RowIndex;
string s = gcMultiRow1[rowIndex, “summaryCell5”].Value.ToString(); gcMultiRow1.SetValue(rowIndex+1, “textBoxCell34”, s);
}
if (e.CellName == “gcDateTimeCell1” && e.Value != null)
{
// e.CellStyle.Format = “MMM d dd ddd”;
DateTime s = (DateTime)e.Value;
if (s.ToString(”MMM d dd ddd”).IndexOf(”土”) > 0)
{
//noby.Message(s.ToString(”MMM d dd ddd”));
e.CellStyle.ForeColor = Color.Blue;
}
else if (s.ToString(”MMM d dd ddd”).IndexOf(”日”) > 0)
{
e.CellStyle.ForeColor = Color.Red;
}
e.FormattingApplied = true;
}
}
catch
{ }
}
}