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

[Solved] gridboundcol

1 Answer 91 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Ayesha
Top achievements
Rank 1
Ayesha asked on 04 Aug 2009, 09:48 PM

Hi,

I've a radgrid with 2 columns - gridboundcolumn and other greidtemplate column with a dropdownlist in it.

For the dropdownlist, I'm binding the data in item databound.

These 2 columns have been created in ascx like:

 
   <Columns>
                                              <telerik:GridBoundColumn HeaderText ="Search Criteria" DataField="" UniqueName="SearchCriteria" ReadOnly="true">
                                              </telerik:GridBoundColumn>
                                                <telerik:GridTemplateColumn HeaderText="Mapped Tag" UniqueName ="MappedTag">
                                                   <ItemTemplate>
                                                      <asp:DropDownList ID="m_radMappedTagCombo" runat="server" Width="100%"></asp:DropDownList>
                                                  
                                                  </ItemTemplate>
                                                </telerik:GridTemplateColumn>
                                             </Columns>

how'll i access my gridboundcolumn in codebehind.

I need to bind some data to the grid bound column??

in cs:

List<string> strList = new List<string(){"aaa","ddd","cc"};

I need to bind strlist to my gridboundcolumn(uniquename for it is "temp").
so, how do i bind gridboundcolumn to strlist in my radgrid.

Note: i've declared my columns in .ascx

Thanks,
ZR

1 Answer, 1 is accepted

Sort by
0
Tsvetoslav
Telerik team
answered on 07 Aug 2009, 01:20 PM
Hello Zaheka,

If this is the final structure of your grid and no more bound columns will be added then you can just use the grid's NeedDataSource event and assign to the grid's DataSource property the list of strings. Otherwise, there is no way that you can bind individually only a given column of the RadGrid control.

I hope this helps.

Greetings,
Tsvetoslav
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
Grid
Asked by
Ayesha
Top achievements
Rank 1
Answers by
Tsvetoslav
Telerik team
Share this question
or