在MainView中添加一个CustomDrawRowIndicator事件,在事件处理器中添加以下代码
if (e.Info.IsRowIndicator && e.RowHandle >= 0)
{
e.Info.DisplayText = e.RowHandle.ToString();
}
然后修改InDicatorWidth属性为30,不然可能会出现看似乱码的东西。