This is a migrated thread and some comments may be shown as answers.

help with grid it wont bind

2 Answers 77 Views
Grid
This is a migrated thread and some comments may be shown as answers.
DragonBall
Top achievements
Rank 1
DragonBall asked on 03 Aug 2008, 04:48 AM
DataSet ds = LibraryDocument.GetDocument(documentid);

foreach (DataRow row in ds.Tables["Document"].Rows)
{

string documentImageId = string.Format("{0}", row["library_docuemnt_images_id"]);
string libraryDocumentId = string.Format("{0}", row["library_document_id"]);
string Uri = string.Format("{0}", row["uri"]);
RadGrid3.DataSource = ds;

RadGrid3.MasterTableView.PageSize = 15;
RadGrid3.MasterTableView.DataKeyNames = new string[] { "library_docuemnt_images_id" };

GridBoundColumn boundColumn;
boundColumn = new GridBoundColumn();
boundColumn.DataField = documentImageId;
boundColumn.HeaderText = "Library ID";
RadGrid3.MasterTableView.Columns.Add(boundColumn);

RadGrid3.DataBind();


}

2 Answers, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 04 Aug 2008, 04:55 AM
Hello Manuel,

You can go through the following help document link which explains the creation of RadGrid dynamically, and see if it helps.
Programmatic creation

Thanks
Princy.


0
DragonBall
Top achievements
Rank 1
answered on 05 Aug 2008, 12:27 AM
i tried Programmatic creation but it still wont work?
Tags
Grid
Asked by
DragonBall
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
DragonBall
Top achievements
Rank 1
Share this question
or