c# - Gridview attributes from code behind -
how can set onrowdatabound method name code behind?
aspx code:
onrowdatabound = "gvresults_rowdatabound" how set code behind?
gvresults.attributes["onrowdatabound"] = "gvresults_rowdatabound"; does not work.
you have use rowdatabound event handler gridview:
gvresults.rowdatabound += gvresults_rowdatabound;
Comments
Post a Comment