Click here to Skip to main content
15,891,473 members
Home / Discussions / C#
   

C#

 
AnswerRe: CheckBox Control [modified] Pin
Nader Elshehabi23-Aug-06 1:29
Nader Elshehabi23-Aug-06 1:29 
GeneralRe: CheckBox Control [modified] Pin
wheelerbarry23-Aug-06 1:55
wheelerbarry23-Aug-06 1:55 
GeneralRe: CheckBox Control Pin
Nader Elshehabi23-Aug-06 2:52
Nader Elshehabi23-Aug-06 2:52 
AnswerRe: CheckBox Control Pin
Christian Graus23-Aug-06 2:18
protectorChristian Graus23-Aug-06 2:18 
Questionmodify main title from a started process Pin
gitschi23-Aug-06 0:47
gitschi23-Aug-06 0:47 
AnswerRe: modify main title from a started process Pin
22491723-Aug-06 1:15
22491723-Aug-06 1:15 
AnswerRe: modify main title from a started process Pin
gitschi30-Aug-06 0:51
gitschi30-Aug-06 0:51 
Questiona problem on dynamic datagrid Pin
Siva Myneni23-Aug-06 0:41
Siva Myneni23-Aug-06 0:41 
Hi all,

I have added linkbutton to the datagrid in the template column.i have to display particular field of datasource to the lnkbutton text.My code is like this

this is a class file
public class DataGridTempla :System.Web.UI.Page,ITemplate
{
ListItemType templateType;
string columnName;

public DataGridTempla( ListItemType type,string colname)
{
templateType = type;
columnName = colname;
}

public void InstantiateIn(System.Web.UI.Control container)
{

Literal lc = new Literal();
LinkButton lb = new LinkButton();
lb.Click+=new EventHandler(lb_Click);


case ListItemType.Item:

lc.Text=columnName;
lc.Text = "Select " + columnName;
lb.CommandName = "EditButton";
lb.Text= "" + columnName + "";
//container.Controls.Add(chkb);
container.Controls.Add(lb);
container.Controls.Add(lc);
}

this is my webform coding

TemplateColumn tc=new TemplateColumn();
tc.ItemTemplate=new DataGridTempla(ListItemType.Item,"BrandId" );
BoundColumn bc=new BoundColumn();
bc.DataField="Brand_Name";
DataGrid1.Columns.AddAt(0,tc);
DataGrid1.Columns.AddAt(1,bc);
DataGrid1.DataBind();

please try this.

sivamyneni

AnswerRe: a problem on dynamic datagrid Pin
Not Active23-Aug-06 2:58
mentorNot Active23-Aug-06 2:58 
QuestionVS2005 deployment / installer project: copy version data around Pin
Jan R Hansen23-Aug-06 0:19
Jan R Hansen23-Aug-06 0:19 
AnswerRe: VS2005 deployment / installer project: copy version data around Pin
Not Active23-Aug-06 1:02
mentorNot Active23-Aug-06 1:02 
GeneralRe: VS2005 deployment / installer project: copy version data around Pin
Jan R Hansen23-Aug-06 21:28
Jan R Hansen23-Aug-06 21:28 
GeneralRe: VS2005 deployment / installer project: copy version data around Pin
Not Active24-Aug-06 2:17
mentorNot Active24-Aug-06 2:17 
GeneralRe: VS2005 deployment / installer project: copy version data around Pin
Jan R Hansen24-Aug-06 3:10
Jan R Hansen24-Aug-06 3:10 
Questionsecurity Pin
Legolas.Bilbao23-Aug-06 0:04
Legolas.Bilbao23-Aug-06 0:04 
AnswerRe: security Pin
22491723-Aug-06 0:52
22491723-Aug-06 0:52 
GeneralRe: security Pin
Legolas_Bilbao23-Aug-06 5:43
Legolas_Bilbao23-Aug-06 5:43 
Question"it is being used" problem..[Really Urgent.. Please Help !!!] Pin
kkadir22-Aug-06 23:10
kkadir22-Aug-06 23:10 
AnswerRe: "it is being used" problem..[Really Urgent.. Please Help !!!] Pin
22491722-Aug-06 23:59
22491722-Aug-06 23:59 
AnswerRe: "it is being used" problem..[Really Urgent.. Please Help !!!] Pin
S. Senthil Kumar23-Aug-06 2:05
S. Senthil Kumar23-Aug-06 2:05 
AnswerRe: "it is being used" problem..[Really Urgent.. Please Help !!!] Pin
Christian Graus23-Aug-06 2:12
protectorChristian Graus23-Aug-06 2:12 
GeneralRe: "it is being used" problem..[Really Urgent.. Please Help !!!] Pin
kkadir23-Aug-06 3:16
kkadir23-Aug-06 3:16 
QuestionHow to Skin VC#.Net app? Pin
bug_aonz22-Aug-06 23:09
bug_aonz22-Aug-06 23:09 
AnswerRe: How to Skin VC#.Net app? Pin
Not Active23-Aug-06 1:07
mentorNot Active23-Aug-06 1:07 
QuestionFunky problem with reading multiline XML contents into a multiline textbox Pin
ThisIsMyUserName222-Aug-06 23:08
ThisIsMyUserName222-Aug-06 23:08 

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.