ASP.Net Datagrid

C

C

Hi,

I have a datagrid on an ASP.Net where the columns are not generated
automatically.

I have 2 questions.

1. How can I loop through the dataset (C#) and set each column field
individually.
The reason I want to do this is because I want to interweave one of the
values in a column in DHTML.

2 If one of my columns is a button column how do I set the text field to be
the value in another column....
For Example.
<asp:datagrid........>
<Columns>
<asp:ButtonColumn DatTextField=?? ...>
<asp:BoundColumn DataField="SomeDataField" DataTextField="Test">
<Columns>
</asp:datagrid>

In above how do I set the text of the button column to be the value in my
Datafield in column 2.

(Note: I may have the names/syntax in above datagrid incorrect, but you
should get the idea)

Any help is much appreciated.


Thanks,
COG.
 

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.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,007
Latest member
obedient dusk

Latest Threads

Top