ASP.Net Datagrid

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)

Share This Page

Welcome to The Coding Forums!

Welcome to the Coding Forums, the place to chat about anything related to programming and coding languages.

Please join our friendly community by clicking the button below - it only takes a few seconds and is totally free. You'll be able to ask questions about coding or chat with the community and help others.
Sign up now!