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
703
Link label inside a Grid
posted

Hai all, 

I need to insert a link label inside a grid. Is it possible to do that. The problem is the link data is going to be fed by a database and the link lable should come at the first column of the grid. Is there any way to do that. Please help with some code samples if possible. Thank you in advance for all your help.

Parents
  • 37774
    posted

    You could set the Style property of the column to FormattedText, then set the column.Header.VisiblePosition to 0 to make sure that it's the first visible column.  Your best bet would be to do this in the InitializeLayout event:

     private void ultraGrid1_InitializeLayout(object sender, InitializeLayoutEventArgs e)
    {
        UltraGridColumn column = e.Layout.Bands[0].Columns[0];
        column.Style = Infragistics.Win.UltraWinGrid.ColumnStyle.FormattedText;
        column.Header.VisiblePosition = 0;
    }

    -Matt

Reply Children