or

Hi Guys:
I’m using telerik almost one year…. this is really an excellent tools for rapid development. However I’m facing a little issues and I’m stuck I can’t resolved this. The issues is I have a grid with five column, the first column contain the serial number of each record, and now I want to add drag & drop functionalities to swap column. For example I select the column number 5 and drag and drop it into the column 2 so I the column will swap and reorder the serial number, the column 5 will be column 2 and column will be column 5. How can I achieve this? I need your help / any suggestion.
Regards,
Md. Marufuzzaman

radGridView1.AutoSizeRows = true;
foreach (GridViewColumn column in radGridView1.Columns)
{
column.WrapText = true;
}_adapter = New SqlDataAdapter()_adapter.SelectCommand = _cmdSelect_adapter.Fill(Me.dsSync, "Transactions") ', "MBDeviceAuthorization")_adapter.SelectCommand = _cmdSelect2_adapter.Fill(Me.dsSync, "Details")grdTransactionDetails.Tag = "checkouts"grdTransactionDetails.DataSource = Me.dsSync.Tables("Transactions") ' Me.BindingSource1Dim template As GridViewTemplate = New GridViewTemplatetemplate.DataSource = Me.dsSync.Tables("Details")template.AllowAddNewRow = Falsetemplate.AllowEditRow = Falsetemplate.AllowDeleteRow = Falsetemplate.EnableGrouping = FalsegrdTransactionDetails.MasterGridViewTemplate.ChildGridViewTemplates.Add(template)Dim relation As GridViewRelation = New GridViewRelation(grdTransactionDetails.MasterGridViewTemplate)relation.ChildTemplate = templaterelation.RelationName = "CheckoutItems"relation.ParentColumnNames.Add("rowid")relation.ChildColumnNames.Add("rowid")grdTransactionDetails.Relations.Add(relation)Please point me to (a) sample(s) to distinguish in the insert or update between a master / child the current selection is on.
| private void radGridView1_RowsChanged(object sender, GridViewCollectionChangedEventArgs e) |
| { case ... I'm changing in the master... // what is the selection |
| this.t_FilmTableAdapter.Update(this.pAS2DataSet.T_Film); case .... I'm changing a child //how do you select it case .... another child end case |
| } |