Reordering Columns in DataBoundGrid

hi;
I Used a DataBoundGrid in my application.its data source is a dataset which fills with a store procedure.I add a new columns to the dataset by following code :
ds.Tables[0].Columns.Add(date);

the new column is not in my store procedure so it adds as last column.now i want replace it with another column in my dataset.Indeed i want move the new column into another column.
could you plz help me in this feature ?


1 Reply

NA Nisha Arockiya A Syncfusion Team November 10, 2008 11:56 AM UTC

Hi Shayesteh_bh,

Thanks for using Symcfusion Products.

There is a GridControl.AllowDrawSelectedCols propperty that you can set that controls whether the user can moved selected columns.

If you set this property, then if the user selects a single column by clicking the header cell (or select a range of columns by dragging the mouse over several column headers), he can then mouse down on the selected header and drag the columsn to a new position.

Let me know if this is not what you needed.

Regards,
Nisha



Loader.
Up arrow icon