2014年7月13日 星期日

[RESOLVED] GridView - Get Clicked Column index


Hi guys,


Long time i don't worked wih .NET


I need your help. I have a gridview inside a User Control.


I have followed this link
http://www.codeproject.com/Articles/18136/Edit-Individual-GridView-Cells-in-ASP-NET
 to get a self cell edit.


But the problem is inside the RowCommand. I can't get the column index with the Request.Form["__EVENTARGUMENT"].


How can i get the column index from the rowindex?


Thanks for your precious help.


 



hi ketthos,


From what I understand you want to get the column index from the rowindex.


I suggest you that you can try  following the  very simple way:



Visible="True" CommandArgument='<%# Container.DataItemIndex %>' />

If you need more assistance ,please let me know.


沒有留言:

張貼留言