|
Subject:
|
Prob with datagrid control
|
|
Posted By:
|
Suneet
|
Post Date:
|
2/6/2004 5:32:39 AM
|
Hi I have 1 datagrid and i am using delete and edit options for this grid. I do't want delete button in my first row as i do't want to delete my first row which is my admin record but i can edit that. Any Solution.....
|
|
Reply By:
|
planoie
|
Reply Date:
|
2/6/2004 12:26:37 PM
|
Is the first row ALWAYS going to be the admin row? Or do you have some data that can identify it as such?
Using the ItemDataBound event handler of the datagrid you can look at the contents of the columns and test row data (if it's the admin row), and then make the "delete" button not visible in just that row.
Peter ------------------------------------------------------ Work smarter, not harder.
|
|
Reply By:
|
Suneet
|
Reply Date:
|
2/9/2004 12:08:02 AM
|
Hi Peter ThanX a lot. I tried this thing in my code but failed. Do me one favor can u send me code for hint.
Suneet
|
|
Reply By:
|
planoie
|
Reply Date:
|
2/9/2004 10:20:23 AM
|
Try these:
http://p2p.wrox.com/topic.asp?TOPIC_ID=7974&SearchTerms=ItemDataBound http://p2p.wrox.com/topic.asp?TOPIC_ID=5756&SearchTerms=ItemDataBound http://p2p.wrox.com/topic.asp?TOPIC_ID=8307&SearchTerms=ItemDataBound
|