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
315
localtion of column in UltraGridview
posted

i have UltraGridview and insert 3 column new

UtraGridview.DisplayLayout.Bands(0).Columns.Insert(0, column_name1)

UtraGridview.DisplayLayout.Bands(0).Columns.Insert(0, column_name2)

UtraGridview.DisplayLayout.Bands(0).Columns.Insert(0, column_name3)

but when insert  in to Gridview then localtion of column not localtion

 

  • 37774
    Verified Answer
    posted

     I'm not sure what the problem you're experiencing is.  If you do the following:

    e.Layout.Bands[0].Columns.Insert(0, "One");
    e.Layout.Bands[0].Columns.Insert(0, "Two");
    e.Layout.Bands[0].Columns.Insert(0, "Three");

    Then the order of the columns will (correctly) be "Three", "Two", "One".  This is because you're always inserting the columns at the beginning of the collection, so the last column that you add will be the first visible one.

    -Matt