It should be quite possible. Have you tried writing an event handler
for the itemdatabound event? In that event, you should be able to find
your button control using FindControl, and change its text.
Dear Dian:
Excuse me for making a mistake. Maybe, it is too simple that my
question was explained. What I really want to change is not matched with the
example you supplied. I'd like to change the text of cells of a column which
has been set as a buttonColumn and bounded to a datafield.
I have tried to change its texts with code,but met a setback. Beneath
here is what I have tried:
hyst=menuDataGrid.Items[theboundcolumm].Cells.Text;
//------hyst=""----The returned string was empty, why?
menuDataGrid.Items[theboundcolumm].Cells.Text="the words";
//----The effect showed on the brower was the clicked link was
disappearing. Why? And how can i do ??
Ask a Question
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.