thanks Tadit, I did like this:
protected void gridTransaction_RowCommand(object sender, GridViewCommandEventArgs e)
{
if (e.CommandName == "headerClicked")
{
foreach (GridViewRow row in gridTransaction.Rows)
{
var record = row;
}
}
}
I did some debugging, in record, dataItem shown is null. Also text is blank. I am binding grid on page load..Did i missed something that resulted to null item being binded???