|
Protected void GridView1_rowcreated (Object Sender, GridViewRoweventargs E)
{
IF (E.Row.RowType == DatacontrolrowType.DataRow)
{
For (int i = 1; i <gridview1.rows.count; i ++)
{
Button but = (button) E.Row.FindControl ("BT");
GridViewrow DROW = GridView1.Rows [i];
String s = drow.cells [1] .TEXT;
But.text = s;
Response.write (i);
}
}
}
The first BUT TEXT is empty, how is the data behind it? `Standarded one` |
|