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

ListDistionary

0 Answers 80 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Shah
Top achievements
Rank 1
Shah asked on 12 Jan 2012, 11:58 AM
Hi everyone

public void FillGridCombo(ref Telerik.Web.UI.RadGrid grd, int iCol, DataTable lDTSrc, string sID, string sDisplay)
    {
        try
        {
            System.Collections.Specialized.ListDictionary hList = new System.Collections.Specialized.ListDictionary();
            int iRow = 0;
            for (iRow = 0; iRow <= lDTSrc.Rows.Count - 1; iRow++)
            {
                hList.Add(lDTSrc.Rows[iRow][sID], lDTSrc.Rows[iRow][sDisplay]);
            }
            grd.Columns[iCol].Initialize();
            grd.Columns[iCol].GetCustomPropertyDataFields(hList);

        }
        catch (Exception ex)
        {
            throw ex;

        }
    }

I used this function for getting data in combobox column in ASP.NET Rad GridView which works f9.
I need to know the alternate for the bold rows or if someone has better solution please let me know.

Thanks

No answers yet. Maybe you can help?

Tags
GridView
Asked by
Shah
Top achievements
Rank 1
Share this question
or