Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 Development Tools
 ASP.NET
 Textbox & datagridview

Author  Topic 

SANDIP BHANGE
Starting Member

9 Posts

Posted - 2008-12-07 : 02:21:33
Hi Everybody...


I have datagridview, when select the row of datagridview the values of row can not be display in perticular textbox...


Can u help me please......





sandip b

SANDIP BHANGE
Starting Member

9 Posts

Posted - 2008-12-12 : 03:07:50
Do u have any sample code... So I can try (C#.net & SQL2005)

sandip b
Go to Top of Page

afrika
Master Smack Fu Yak Hacker

2706 Posts

Posted - 2008-12-12 : 03:44:29
Use the edit template
Go to Top of Page

onlyforme
Starting Member

25 Posts

Posted - 2008-12-15 : 02:09:45
Hi sandip ,
Make sure u put ur textbox inside the edititem template.Then bind the data to be displayed in the text property of the textbox.
Then in editcommand event of gridview write the following code
this.rgListValues.EditItemIndex = e.Item.ItemIndex;
BindDataGrid();

thanku
Go to Top of Page
   

- Advertisement -