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

how to find row index of drop down column value

1 Answer 69 Views
Grid
This is a migrated thread and some comments may be shown as answers.
shanker bangari
Top achievements
Rank 1
shanker bangari asked on 01 Apr 2010, 04:00 PM
Hi
this shanker  am doing one project my requirement is I catcth the dropdowncloumn value of rowindex in itemcommand my sample code 
how to find that 
please let me it's argent

 if (e.CommandName == "Insert")
            {
                XElement xmlDoc = new XElement("process_bulk_load");

                long IDNO = 1;
                for (int i = 0; New_Fee_payment_grid.Items.Count > i; i++)
                {
                    CheckBox chk = New_Fee_payment_grid.Items[i].Cells[0].FindControl("allcheck") as CheckBox;
                    if (chk != null)
                    {
                        if (chk.Checked == true)
                        {
                            DropDownList student_name = ((DropDownList)New_Fee_payment_grid.Items[i].cells[1.control[0]]) as DropDownList;
                            if (student_name != null)
                            {

                            }
                        }
                    }
                }
            }

how to fine it's very argent I face this error 

Unable to cast object of type 'System.Web.UI.LiteralControl' to type 'Telerik.Web.UI.RadComboBox'.

thanks and regards
shanker.b

1 Answer, 1 is accepted

Sort by
0
O'Man
Top achievements
Rank 1
answered on 01 Apr 2010, 04:39 PM
Hi,
This Oman,
I am doing not project,
It is argent to read this link:

http://www.telerik.com/help/aspnet-ajax/grdaccessingcellsandrows.html

Thankings,
Oman
Tags
Grid
Asked by
shanker bangari
Top achievements
Rank 1
Answers by
O'Man
Top achievements
Rank 1
Share this question
or