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

[Solved] radgrid

1 Answer 72 Views
Grid
This is a migrated thread and some comments may be shown as answers.
sanjay rajesh
Top achievements
Rank 1
sanjay rajesh asked on 02 Aug 2009, 05:46 AM
Edit form settings in radgrid itemdatabound in combo box coding

1 Answer, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 03 Aug 2009, 05:02 AM
Hi Sanjay,

I am not sure what exactly is your requirement. If you need to set the EditForm Settings from code behind you may try the following code snippet.

CS:
 
   RadGrid1.MasterTableView.EditFormSettings.FormStyle.BackColor = System.Drawing.Color.Red; 

Here is the code snippet to access a control  from the EditForm in code behind.

CS:
 
protected void RadGrid1_ItemDataBound(object sender, GridItemEventArgs e) 
    { 
        if ((e.Item is GridEditFormItem) && (e.Item.IsInEditMode)) 
        { 
            GridEditFormItem edititem = (GridEditFormItem)e.Item; 
            RadComboBox combo = (RadComboBox)edititem.FindControl("RadComboBox1"); 
        } 
    } 


Shinu
Tags
Grid
Asked by
sanjay rajesh
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Share this question
or