Click here to Skip to main content
15,891,976 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: Urgent Javascript Pin
_mubashir22-Apr-07 23:37
_mubashir22-Apr-07 23:37 
AnswerRe: Urgent Javascript Pin
_AK_23-Apr-07 0:16
_AK_23-Apr-07 0:16 
QuestionDatagrid question?? Pin
Nada Adel22-Apr-07 23:27
Nada Adel22-Apr-07 23:27 
AnswerRe: Datagrid question?? Pin
_AK_22-Apr-07 23:31
_AK_22-Apr-07 23:31 
GeneralRe: Datagrid question?? Pin
Nada Adel23-Apr-07 0:04
Nada Adel23-Apr-07 0:04 
GeneralRe: Datagrid question?? Pin
_AK_23-Apr-07 0:23
_AK_23-Apr-07 0:23 
GeneralRe: Datagrid question?? Pin
Nada Adel23-Apr-07 1:04
Nada Adel23-Apr-07 1:04 
GeneralRe: Datagrid question?? Pin
_AK_23-Apr-07 1:38
_AK_23-Apr-07 1:38 
I don't know about the link but you can search through google.
BTW here is the code to create bound column and template column dynamically:

BoundColumn bCol = new BoundColumn();<br />
bCol.DataField = DC.ColumnName;<br />
bCol.HeaderText = DC.ColumnName;


here DC is the datacolumn.

TemplateColumn tColStatus = new TemplateColumn();
tColStatus.HeaderText = "Status";

only thing is after creating these columns you need to add them to the datagrid and once it is done in the itemdatabound event you can place the following code to add the control to the template column.
<br />
Label lblStatus = new Label();<br />
lblStatus.EnableViewState = true;<br />
lblStatus.ID = "lblStatus";<br />
lblStatus.Text = "Pending";<br />
e.Item.Cells[index of the template column].Controls.Add(lblStatus);



Best Regards,
Apurva Kaushal

GeneralRe: Datagrid question?? Pin
Nada Adel23-Apr-07 3:15
Nada Adel23-Apr-07 3:15 
GeneralRe: Datagrid question?? Pin
_AK_23-Apr-07 5:10
_AK_23-Apr-07 5:10 
GeneralRe: Datagrid question?? Pin
Nada Adel23-Apr-07 9:41
Nada Adel23-Apr-07 9:41 
GeneralRe: Datagrid question?? Pin
_AK_23-Apr-07 19:08
_AK_23-Apr-07 19:08 
GeneralRe: Datagrid question?? Pin
Nada Adel23-Apr-07 21:56
Nada Adel23-Apr-07 21:56 
GeneralRe: Datagrid question?? Pin
_AK_23-Apr-07 22:12
_AK_23-Apr-07 22:12 
GeneralRe: Datagrid question?? Pin
Nada Adel23-Apr-07 22:18
Nada Adel23-Apr-07 22:18 
GeneralRe: Datagrid question?? Pin
_AK_23-Apr-07 22:23
_AK_23-Apr-07 22:23 
GeneralRe: Datagrid question?? Pin
Nada Adel23-Apr-07 22:29
Nada Adel23-Apr-07 22:29 
GeneralRe: Datagrid question?? Pin
_AK_23-Apr-07 23:46
_AK_23-Apr-07 23:46 
GeneralRe: Datagrid question?? Pin
Nada Adel24-Apr-07 0:58
Nada Adel24-Apr-07 0:58 
GeneralRe: Datagrid question?? Pin
_AK_24-Apr-07 1:22
_AK_24-Apr-07 1:22 
QuestionTime comparison Pin
Exelioindia22-Apr-07 23:21
Exelioindia22-Apr-07 23:21 
AnswerRe: Time comparison Pin
Rakheesh Chalil23-Apr-07 11:47
Rakheesh Chalil23-Apr-07 11:47 
QuestionAsp:contentplaceholder in head? Pin
Russell Jones22-Apr-07 22:41
Russell Jones22-Apr-07 22:41 
AnswerRe: Asp:contentplaceholder in head? Pin
Russell Jones22-Apr-07 23:15
Russell Jones22-Apr-07 23:15 
GeneralRe: Asp:contentplaceholder in head? Pin
RichardGrimmer23-Apr-07 5:40
RichardGrimmer23-Apr-07 5:40 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.