Hi everyone,
i want to add an ImageColumn at the end of a RadGrid which is using a DataTable as DataSource.
Because of the Source (i guess) i need to call the Binding-Metod, so that the row can be added (at the end).
If i just now add the Column without calling DataBind() or Rebind() again, the ImageColumn will not be shown. And by using those methods, the ImageColumn is the first Column.
Is there a way to solve this?
Is it maybe possible to switch the position of the columns? (I could use this in another case).
Thanks in advance,
Marcel
i want to add an ImageColumn at the end of a RadGrid which is using a DataTable as DataSource.
DataTable dtTable = objTest.ReturnsDataTable();RadGrid2.DataSource = dtTable;RadGrid2.DataBind();GridImageColumn gridImageCol = new GridImageColumn();gridImageCol.ImageUrl = "/images/stift_icon.gif";GridImageButton gridButton = new GridImageButton(gridImageCol);gridButton.OnClientClick = "testAlert";RadGrid2.DataBind();RadGrid2.Columns.Add(gridImageCol);//RadGrid2.Rebind();RadGrid2.DataBind();If i just now add the Column without calling DataBind() or Rebind() again, the ImageColumn will not be shown. And by using those methods, the ImageColumn is the first Column.
Is there a way to solve this?
Is it maybe possible to switch the position of the columns? (I could use this in another case).
Thanks in advance,
Marcel