0

What is the syntax for elements of a gridview object?

I want to be able to manipulate a gridview object in Visual Studio 2010 as if it were a two dimensional array where each individual element of this array contains a variable.

How could I do something like:

GridView1.SetElementAt(X,Y) = strEventName

where X is the row index and Y is the column index.

4

1 に答える 1

0

RowsプロパティとCellsプロパティの使用:

GridView1.Rows(X).Cells(Y).Text = strEventName
于 2013-02-19T02:19:50.403 に答える