Hi Alan6895,
That's my problem. I don't know what I am doing wrong in the routine. I was trying to put code for ItemCreated:
Private Sub dgList_ItemCreated(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.DataGridItemEventArgs) Handles dgList.ItemCreated
If...
I would like to be able to select a row in the datagrid without having a select button. Then, when I click "Edit" button on the form, one of the values from this row should be pulled into the querystring on another page created for editing.
I understand I should somehow mimic...
I created a simple HTML page and pasted only this part of code into it. I also had to add six more generic columns to make the table bigger than the screen on my PC, and I got the same problem - right border is not visible. I am using IE 6.0.2900.2180. I cannot understand why it is happening...
I can only show it without data:
<table cellspacing="0" rules="all" bordercolor="#8080FF" border="1" id="dgList" style="border-color:#8080FF;border-style:Solid;font-family:Arial;font-size:XX-Small;width:100%;border-collapse:collapse;Z-INDEX: 103; LEFT: 8px; POSITION: absolute; TOP: 104px">
<tr...
I have a datagrid that is bigger than screen size, so I have vertical and horizontal scroll bars. My problem that the screen "eats" right and bottom datagrid borders. Is there any easy way to solve this problem?
Sub SpanFooter(ByVal sender As Object, ByVal e As DataGridItemEventArgs)
If e.Item.ItemType = ListItemType.Footer Then
e.Item.Cells(0).ColumnSpan = 16
e.Item.Cells(0).Text = "Back to Top"
e.Item.Cells.RemoveAt(1)
e.Item.Cells.RemoveAt(2)
e.Item.Cells.RemoveAt(3)...
It's a good one, but for whatever reason I get an error when I try to RemoveAt(...) more than 8 columns. My code looks like this:
Sub SpanFooter(ByVal sender As Object, ByVal e As DataGridItemEventArgs)
If e.Item.ItemType = ListItemType.Footer Then
e.Item.Cells(0).ColumnSpan = 16...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.