944,111 Members | Top Members by Rank

Ad:
  • ASP.NET Discussion Thread
  • Unsolved
  • Views: 7497
  • ASP.NET RSS
Jan 17th, 2005
0

hide checkbox in grid appropriately

Expand Post »
In the itemtemplate of a web datagrid, I have placed a checkbox.
At present, for every row of the grid, there is a checkbox.
If for example, let's say three of the records have the same FileID, then I would like to have only one checkbox for these three rows as opposed to one checkbox for each row.
How can I do this please?
Thanks
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
fmardani is offline Offline
6 posts
since Dec 2004
May 9th, 2005
0

Re: hide checkbox in grid appropriately

You can use the ItemDatabound event in the datagrid for this. Add this ItemDataBound event of the datagrid and inside the event function - you could do something like in the following code:

If
<<logic to find to span or not to span>> Then
e.Item.Cells(4).RowSpan = <<number of rows to be spanned>>
Else
e.Item.Cells(4).Visible = False
EndIf

Here the column number 4 in the grid is assumed as the checkbox column.
Reputation Points: 42
Solved Threads: 0
Light Poster
srikkanthan is offline Offline
27 posts
since May 2004

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in ASP.NET Forum Timeline: Query about Web Beacons
Next Thread in ASP.NET Forum Timeline: How it is possible tu use a class that is in a new vb file??





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC