初期ロード時の 1 行目の青いハイライトを消したい場合は、UltraGrid の SyncWithCurrencyManager プロパティに False を設定するか、AfterRowActivate イベントで初回時のみ ActiveRow を null にしてください。
SyncWithCurrencyManager プロパティにFalseを設定する場合
private void Form1_Load(object sender, EventArgs e)
{
ultraGrid1.SyncWithCurrencyManager = false;
}
AfterRowActivate イベントで初回時のみ ActiveRow を null にする場合
private bool _firstRowActivation = true;
private void ultraGrid1_AfterRowActivate(object sender, EventArgs e)
{
if (_firstRowActivation)
{
ultraGrid1.ActiveRow = null;
_firstRowActivation = false;
}
}
UltraGrid は初期ロード時に 1 行目をアクティブにします。1 行目の青いハイライトはそれが原因です。上記のいずれかの設定をすることで、1 行目のアクティブ化を回避でき、青いハイライトも消えます。