hi,
i have a populated grid on a web page. and a server side button. clicking on this button, i want to find out what columns have been used in the grouping.
i've tried this :
i thought perhaps from the button i could get the fieldname. (the fieldname is all i want)
but all controls are literals, no imagebuttons. but the grid is populated with data - i thought it might be a post back issue.
can you please help
thanks
andy
i have a populated grid on a web page. and a server side button. clicking on this button, i want to find out what columns have been used in the grouping.
i've tried this :
protected void Button1_Click(object sender, EventArgs e) |
{ |
foreach (GroupItemCell oCell in grdPendingOrders.GroupPanel.GroupPanelItems) |
{ |
foreach (Control ctrl in oCell.Controls) |
{ |
if (ctrl is System.Web.UI.WebControls.ImageButton) |
{ |
System.Web.UI.WebControls.ImageButton button = ctrl as System.Web.UI.WebControls.ImageButton; |
} |
} |
} |
} |
i thought perhaps from the button i could get the fieldname. (the fieldname is all i want)
but all controls are literals, no imagebuttons. but the grid is populated with data - i thought it might be a post back issue.
can you please help
thanks
andy