R
Ryu
Hi
I have method that binds data to the DataList.
void BindControls()
{
//Code Here
DataList.DataBind();
}
And I have a ItemBound event that will fire after DataBind() is called.
Right now I would like to edit the selected index in the DataList (dl).
private void d_EditCommand(object source, DataListCommandEventArgs e)
{
BindControls();
}
As you can see, I have to call BindControls() again which will have to make
calls to the database again. I don't think this method is very effiicient.
Is there any workaround to fire the ItemBound event without going through
the BindControls()?
Thanks
I have method that binds data to the DataList.
void BindControls()
{
//Code Here
DataList.DataBind();
}
And I have a ItemBound event that will fire after DataBind() is called.
Right now I would like to edit the selected index in the DataList (dl).
private void d_EditCommand(object source, DataListCommandEventArgs e)
{
BindControls();
}
As you can see, I have to call BindControls() again which will have to make
calls to the database again. I don't think this method is very effiicient.
Is there any workaround to fire the ItemBound event without going through
the BindControls()?
Thanks