/// <summary> /// Protected method for invoking ItemDataBound event from within Result control /// </summary> /// <param name="e">Event arguments</param> protected virtual void OnItemDataBound(ResultItemEventArgs e) { ResultItemEventHandler del = (ResultItemEventHandler)Events[ItemDataBoundKey]; if (del != null) { del(this, e); } }
private void result_ItemCreated(object o, Apress.GoogleControls.ResultItemEventArgs rie) { ResultItem item = rie.Item; if (item.ItemType == ResultItemType.Item || item.ItemType == ResultItemType.AlternatingItem) { item.Controls.AddAt(0, new LiteralControl(resultIndex.ToString() + ".")); resultIndex++; } }