Click here to Skip to main content
16,020,622 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi ,

I have a DataGrid in that one of the col is Title(LinkButton).I want to EDIT my DataGrid Col's , when i click on this link .I want to display all the values in the appropriate controls.

for ex i'm using TextBox . I want to display the data into my TextBox.

for that i wrote like this,

C#
<ItemTemplate>
   <asp:Label ID="lblClientDwgNo" runat="server" 
   Text='<%# DataBinder.Eval  (Container.DataItem,"Client_Dwg_No") %>'></asp:Label>
</ItemTemplate>

C#
if(e.CommandName=="Edit")
{
  if (e.Item.ItemType == ListItemType.Item || 
      e.Item.ItemType == ListItemType.AlternatingItem)
  {
     string Client_Dwg_No =
     Convert.ToString(  ((Label) e.Item.FindControl    ("lblClientDwgNo")).Text);
  }
}


But i'm not able to display the value to TextBox.If the value is display then i EDIT that value.


can anyone help me to do this..

Thanx in advance
Posted

Hi,

May be this [^] can help you.
 
Share this answer
 
please explain question in details,
what control you want to show on link and you are using gridview or Repeater?
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900