Using the VisualStudio2012Light theme when a property is edited in the property grid the row stays highlighted after the edit. Then if you scroll that item out of view and scroll back to it then the highlight will go away.
I have a column that is created programmatically and is set to a complex data type. I need the data type to be complex because I need to override the CompareTo method. I also want to be able to use textual filtering on this column, via the ToString() method of my type. When I try to filter on this column, a ParserException is thrown and my program crashes.
consider the following example:
class MyCellType
{
public string myName;
public string myParentName;
public override string ToString()
{
return myName;
}
public int CompareTo(Object obj)
{
//my compare function which sorts children underneath their parents...
if ( myParentName == ((MyCellType)obj)myParentName )
{
return String.Compare(myName, ((MyCellType)obj)myName);
}
else
{
return String.Compare(myParentName , ((AdminUnitCell)obj).myParentName );
}
}
}
//... code that initializes the grid and a data table
I looked for a solution to this problem but I could not find a definite answer. Is textual filtering possible on a complex data type via its ToString() method? If not, then can we get this feature (bug fix) in a future release? I find it difficult to believe that no has ever had a column with a complex data type on a filter-enabled grid and thus experienced the same crash that I am getting.
Recently the Telerik Academy held a free Front-end development course, It included an in depth tutorial on HTML, CSS, Javascript and working with CMS. It will include lectures on sth
RadTreeNode node = new RadTreeNode();
rdTvSearch.Nodes.Clear();
string url = string.Empty;
foreach (DataRow row in MyDataTable.Rows)
{// and this check if send a PID , or a parent id to make fileration.
// if (row["ParentID"] == DBNull.Value || parentid != null) //That the regular case when loading the tree with the Level one parent , that dunt has any parent.
//{
if (row["IsChild"].ToString() == "True")
{ node.Image = TechTouch_Point.Properties.Resources.file2; }
else
{ node.Image = TechTouch_Point.Properties.Resources.folder1 ; }
node = new RadTreeNode(row["NameArabic"].ToString() + ' ' + "_" + ' ' + row["Number"].ToString(), row["ID"].ToString());
node.Attributes.Add("number", row["Number"].ToString());
I have MutliComboBoxColumn in grids and I need to adjust widths of this combo columns (displayed when I drop down combo). I failed to find any way how to do this from designer or code. Is there any way how to alter columns of this in-grid combo? Thx