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

RadGrid Edit State

1 Answer 15 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Nimnul Prof
Top achievements
Rank 1
Nimnul Prof asked on 29 Oct 2008, 08:08 AM
        protected void ProvidersRadGrid_SelectedIndexChanged(object sender, EventArgs
{
When user select row i must show FormTemplate for detail view. How i can do it?

}
            <EditFormSettings EditFormType="Template"  >
                
                <EditColumn UniqueName="EditCommandColumn" InsertText="Inserting"></EditColumn>
                <FormTemplate>
                </FormTemplate>
            </EditFormSettings>

1 Answer, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 29 Oct 2008, 09:04 AM
Hello,

Try out the following code to display a form template once a row is selected.
cs:
protected void RadGrid1_PreRender(object sender, EventArgs e) 
    { 
        foreach(GridDataItem ITEM in RadGrid1.Items) 
        { 
            ITEM.Edit = ITEM.Selected; 
        } 
        RadGrid1.Rebind(); 
         
    } 

Thanks
Princy.
Tags
Grid
Asked by
Nimnul Prof
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Share this question
or