Hello,
I am using RadGrid created programatically in code behing on Page.Init. In the grid I have some GridBoundColumns and some GridTemplateColumns with custom classes as templates. But I have a problem with the GridBoundColumn that displays date. It looks like the whole column is selected, no matter what skin I set. The GridBoundColumn next to it, has the same code except for differences in binding and naming definition. Here is the code for columns (I use the same procedure, but I changed some values like used when creating Date column:
I am also posting a screenshot of the unexpected layout. I hope you can help me, I am guessing that maybe "Date" is some special name that shouldn't be used in Grid's UniqueName or Binding definition.
Thanks in advance,
Vladimir
I am using RadGrid created programatically in code behing on Page.Init. In the grid I have some GridBoundColumns and some GridTemplateColumns with custom classes as templates. But I have a problem with the GridBoundColumn that displays date. It looks like the whole column is selected, no matter what skin I set. The GridBoundColumn next to it, has the same code except for differences in binding and naming definition. Here is the code for columns (I use the same procedure, but I changed some values like used when creating Date column:
| Dim column As GridBoundColumn |
| column = New GridBoundColumn() |
| column.UniqueName = "Date" |
| column.DataType = GetType(String) |
| column.HeaderText = PmResources.GetResourceString(headerResourceKey) |
| column.HeaderTooltip = PmResources.GetResourceString(toolTipResourceKey) |
| column.DataField = "Date" |
| column.AutoPostBackOnFilter = False |
| column.ShowFilterIcon = False |
| column.CurrentFilterFunction = GridKnownFunction.NoFilter |
| column.SortExpression = dataField |
| column.Groupable = False |
| column.AllowFiltering = False |
| column.Reorderable = False |
| column.Visible = visibile |
| column.HeaderStyle.Width = Unit.Pixel(width) |
| column.ItemStyle.Width = Unit.Pixel(width) |
| column.ReadOnly = isReadOnly |
| column.ItemStyle.VerticalAlign = VerticalAlign.Top |
| column.ItemStyle.HorizontalAlign = HorizontalAlign.Left |
I am also posting a screenshot of the unexpected layout. I hope you can help me, I am guessing that maybe "Date" is some special name that shouldn't be used in Grid's UniqueName or Binding definition.
Thanks in advance,
Vladimir