我希望能够将参数传递给 grid_NeedDataSource。
RadGrid.NeedDataSource += new GridNeedDataSourceEventHandler(grid_NeedDataSource(Parameter i want to pass));
void grid_NeedDataSource(object sender, GridNeedDataSourceEventArgs e, DataTable dt)
{
DataTable current = dt;
RadGrid grid = (RadGrid)sender;
grid.DataSource = current;
}
我希望能够将 DataTable 作为参数传递给它。我怎么能做到这一点?