网格视图编辑特定行会产生问题.
当它单击编辑"按钮时,出现以下错误
它的参数网格规范为零的代码
string [] a =新的string [grdsolution.Rows.Count];
//for(int j = 0; j< 1; j ++)
//{
for(int i = 0; i< grdsolution.Rows.Count; i ++)
{
试试
{
if(((grdsolution.Rows [i] .Cells [5] .Text == null))
{
ErrorLog(没有声明");
}
其他
{
a [i] = grdsolution.Rows [i] .Cells [5] .Text;
}
When it click on the edit button then i got the error int the following
code that it grid specification of the argument is zero
string[] a = new string[grdsolution.Rows.Count];
//for (int j = 0; j < 1; j++)
//{
for (int i = 0; i < grdsolution.Rows.Count; i++)
{
try
{
if ((grdsolution.Rows[i].Cells[5].Text == null))
{
ErrorLog("There is no statement");
}
else
{
a[i] = grdsolution.Rows[i].Cells[5].Text;
}
for (int i = 0; i ; grdsolution.Rows.Count; i++)
试试
try
for (int i = 0; i < grdsolution.Rows.Count; i++)