Image RaiseGetButtonImage(int rowHandle) { GetButtonIndexEventArgs args = new GetButtonIndexEventArgs(rowHandle); if (GetButtonIndex != null) { GetButtonIndex(_GridView, args); } return(args.Icon); }
public void GetButtonIndex(object sender, GetButtonIndexEventArgs e) { e.Icon = imageCollection1.Images[e.RowHandle % imageCollection1.Images.Count]; }