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

[Solved] Bind specified datacolumn to RadTextBox

2 Answers 319 Views
Input
This is a migrated thread and some comments may be shown as answers.
alsi
Top achievements
Rank 1
alsi asked on 25 May 2008, 07:04 PM
Dear All!

My code example. Question is below
code behind:

DataTable dt = new DataTable();
DataRow dr;
dt.Columns.Add("Translation", Type.GetType("System.String"));

dr = dt.NewRow();
dr["Translation"] = "TEST";
dt.Rows.Add(dr);
DataSet ds = new DataSet();
ds.Tables.Add(dt);
Session["translationDS"] = ds;

aspx:

<telerik:radtextbox Width="195px" id="RadTextBox3" runat="server" Value='<%# DataBind.Eval ???%>' ... />

Question: How can I bind the Session["translationDS"]'s specified row (for ex. 5th row Translation column->ds.Tables[0].Rows[4]["Translation"]) to RadTextBox not in runtime on aspx side. C# side is ok. 

Many thanks


2 Answers, 1 is accepted

Sort by
0
Accepted
Missing User
answered on 26 May 2008, 01:12 PM
Hello alsi,

Please find attached a sample web application that demonstrates the needed approach.

Do not hesitate to contact me if you have other questions and/or problems.

All the best,
Plamen
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
alsi
Top achievements
Rank 1
answered on 26 May 2008, 02:42 PM
Hello Plamen!

This is what I need!

Thank U very much!!

alsi
Tags
Input
Asked by
alsi
Top achievements
Rank 1
Answers by
Missing User
alsi
Top achievements
Rank 1
Share this question
or