A
Arch
I have a data grid on my ASPX page that gets data from a dataset called
"Sites". My data grid has the following two columns:
<asp:ButtonColumn ButtonType = "LinkButton" CommandName="Select"
HeaderText="" Text="SiteName" />
<asp:boundcolumn headertext="Site ID" datafield="SiteID"
ItemStyle-Width="50px" />
I'd like to replace the Text property of my buttoncolumn from a fixed
string ("SiteName" in this example) to the dataset value "SiteID" that
is currently being used as the datafield property of my boundcolumn. My
idea is that I could get rid of my boundcolumn altogether if this value
was displayed in my buttoncolumn.
Can I do this? Any help is appreciated.
"Sites". My data grid has the following two columns:
<asp:ButtonColumn ButtonType = "LinkButton" CommandName="Select"
HeaderText="" Text="SiteName" />
<asp:boundcolumn headertext="Site ID" datafield="SiteID"
ItemStyle-Width="50px" />
I'd like to replace the Text property of my buttoncolumn from a fixed
string ("SiteName" in this example) to the dataset value "SiteID" that
is currently being used as the datafield property of my boundcolumn. My
idea is that I could get rid of my boundcolumn altogether if this value
was displayed in my buttoncolumn.
Can I do this? Any help is appreciated.