Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Web Controls > ASP.Net Datagrid

Reply
Thread Tools

ASP.Net Datagrid

 
 
C
Guest
Posts: n/a
 
      02-19-2005
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.
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: Datagrid: how cut short display of a long description in a datagrid column Brian K. Williams ASP .Net 0 03-02-2004 08:35 PM
RE: Datagrid: how cut short display of a long description in a datagrid column =?Utf-8?B?U3VyZXNo?= ASP .Net 0 03-02-2004 08:31 PM
datagrid in datagrid BK Kim ASP .Net 1 03-02-2004 06:34 AM
Call Datagrid Command column outside datagrid Dave ASP .Net 0 11-20-2003 11:11 AM
To all Gurus: How can I edit/update a DataGrid in a DataGrid (nested DataGrid)? Possible? Andreas Klemt ASP .Net Datagrid Control 0 10-08-2003 01:19 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57