ListDistionary

1 posts, 0 answers
  1. Shah
    Shah avatar
    1 posts
    Member since:
    Jul 2011

    Posted 12 Jan 2012 Link to this post

    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
Back to Top