Seryu Seryu - 5 months ago 30
SQL Question

Why Identifier Expected?

hi can you please help me what is missing or problem with my script? i keep on getting compiling error: Identifier Expected. It is in the character ".[i"

myRange.Value2 = GridView1.[i,j].Value + ";" == null ? "" : GridView1.[i,j].Text + ";";

Answer

It will be:

myRange.Value2 = GridView1.Rows[i].Cells[j].Text+ ";" == null ? "" : GridView1.Rows[i].Cells[j].Text + ";";

GridView.Rows[i].Cells[j] where i = row index and j = cell index

Comments