c# 使用listview填入数据时出现InvalidArgument="0"的值对于"index"无效
lv.Columns.Add("步骤",80,HorizontalAlignment.Center);lv.Columns.Add("栈",150,HorizontalA...
lv.Columns.Add("步骤", 80, HorizontalAlignment.Center);
lv.Columns.Add("栈", 150, HorizontalAlignment.Left);
lv.Columns.Add("输入缓冲区", 150, HorizontalAlignment.Right);
lv.Columns.Add("句 柄", 80, HorizontalAlignment.Right);
lv.Columns.Add("说 明", 150, HorizontalAlignment.Center);
string str = "";
for (int i = 0; station[i].stackstr != null; i++)
{
lv.Items[i].SubItems.Add(station[i].tasknum.ToString());
lv.Items[i].SubItems.Add(station[i].stackstr);
lv.Items[i].SubItems.Add(station[i].flowstr);
lv.Items[i].SubItems.Add(station[i].constr);
lv.Items[i].SubItems.Add(station[i].induce);
} 展开
lv.Columns.Add("栈", 150, HorizontalAlignment.Left);
lv.Columns.Add("输入缓冲区", 150, HorizontalAlignment.Right);
lv.Columns.Add("句 柄", 80, HorizontalAlignment.Right);
lv.Columns.Add("说 明", 150, HorizontalAlignment.Center);
string str = "";
for (int i = 0; station[i].stackstr != null; i++)
{
lv.Items[i].SubItems.Add(station[i].tasknum.ToString());
lv.Items[i].SubItems.Add(station[i].stackstr);
lv.Items[i].SubItems.Add(station[i].flowstr);
lv.Items[i].SubItems.Add(station[i].constr);
lv.Items[i].SubItems.Add(station[i].induce);
} 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询