Я хочу создать костюм Gridview
. Я нашел очень хороший открытый источник один, но проблема в том, что она использует DataGrid
и когда я изменить унаследованный класс GridView
, я получаю следующую ошибкуКак переопределить метод GridView OnItemDataBound?
AADGridView.OnItemDataBound (DataGridItemEventArgs е): не подходящий метод поиска переопределить
Я имею переопределение здесь:
//public class AADGridView : DataGrid, IPostBackEventHandler
public class AADGridView : GridView, IPostBackEventHandler
{
/// <summary>
/// Gets or sets a value that indicates whether the auto filter is displayed in the AADGrid.AADGridControl.
/// </summary>
[Bindable(true), Category("Appearance"), Description("Whether to show the control's auto filter."), DefaultValue(true),]
/// <summary>
/// Override the DataGrid constructor.
/// </summary>
public AADGridView() : base()
{
// create the ArrayList to contain the DropDownList controls and the SortedList objects added to the header items;
//list = new ArrayList();
sort = new ArrayList();
filter = true;
}
/// <summary>
/// Override the OnItemDataBound event.
/// </summary>
/// <param name="e"></param>
override protected void OnItemDataBound(DataGridItemEventArgs e)
{
//Some Code
base.OnItemDataBound(e);
}
, как вы видите в коде, я дзю st изменение DataGrid
до GridView
. У обоих из них есть OnItemDataBound, и в чем проблема? Thanks
. Как я должен это делать? пожалуйста, напишите мне до @Sefe – AminAmiriDarban