Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
365
Pre Render Event in ultra win grid
posted

 

HI,

Is there any pre render event in ultra win grid ????

i want to use the following code

to a win grid.

Private Sub DataGrid1_PreRender(ByVal sender As Object, ByVal e As
System.EventArgs) Handles DataGrid1.PreRender

Dim dgitem As New DataGridItem(0, 0, ListItemType.Header)
Dim mycell As New TableCell()
mycell.ColumnSpan = 2 'Set it to the colspan that you want
mycell.Text = "This is the top level header item spanning two columns!"
dgitem.Cells.Add(mycell)
DataGrid1.Controls(0).Controls.AddAt(0, dgitem)

End Sub

please help me

 

Thanks & Regards

Parents
No Data
Reply
  • 45049
    posted

    The PreRender event is used for ASP.NET controls, not Windows Forms controls such as WinGrid.

    With this in mind, I have two follow-up questions:

    • Are you using WinGrid in a Windows Forms application, or are you instead using WebGrid or WebDataGrid in an ASP.NET application?  I'll need to know this before I can give any more specific advice.
    • What exactly are you attempting to accomplish?  It looks like you're trying to span content horizontally across two cells in the same row.  Is this correct?
Children
No Data