Hi Miki,
Issue 1: change the grid settings
If you want to change the GridListControl settings in a custom grid cell then you need to override the CreateListControlPart method and retrun your own grid list control. Here is a code snippet
protected override GridListControl CreateListControlPart()
{
GridListControl grid = new GridListControl();
grid.Grid.Model.Options.AlphaBlendSelectionColor = Color.Red;
return grid;
}
If you want to modify the DropDown datasource in a grid cell then you need to handle the CurrentCellShowingDropDown event and set the ListControlPart.DataSource to new datasource.
Issue 2: Keep the text in a grid cell.
One way you can do this by setting the style.Text in onSetControlText event. Below is a code snippet.
protected override void OnSetControlText(string text)
{
if( text == "parentName5" || text == "parentName4" )
{
int index = base.FindItem(text,false,0,true);
this.TextBox.Text = "Selected Index " + Convert.ToString(index);
this.Grid.Model[RowIndex,ColIndex].Text = this.TextBox.Text;
}
else
base.OnSetControlText(text);
}
Here is a sample for implementation.
http://websamples.syncfusion.com/samples/Grid.Windows/F61668/main.htmBest regards,
Haneef