Asp.Net Repeater ItemCommand dataitem is always null
asp.net, repeater
Solution
The DataItem Property is always null except ItemDataBound... its by design of Microsoft.
Problem
In repeater `rpt_ItemCommand` Event the `e.Item.DataItem` is always null. Here is the code behind: ``` protected void rpt_ItemCommand(Object sender, RepeaterCommandEventArgs e) { DataRowView drv = (DataRowView)e.Item.DataItem // here the DataItem is Null. } ``` Suggest me any solutions.