Hi Neeraj,
Thanks for the interst in Syncfusion products.
You can set slider control in your grid with the help of following code.
<code>
gridControl1.CellModels.Add("Slider", new SliderCellModel(gridControl1.Model));
gridControl1[2, 2].CellType = "Slider";
GridStyleInfo style;
SliderStyleProperties sp;
style = gridControl1[2,2];
sp = new SliderStyleProperties(style);
int max = (sp.Maximum = 10);
int min = (sp.Minimum = 1);
gridControl1[2,1].Text = min.ToString();
gridControl1[2, 3].Text = max.ToString();
</code
And you can get the value of the Slider, handling CurrentCellChanged event as follows.
<code>
private void gridControl1_CurrentCellChanged(object sender, EventArgs e)
{
string s;
GridCurrentCell cc = gridControl1.CurrentCell;
GridCellRendererBase renderer = cc.Renderer;
if (cc.RowIndex == 2 & cc.ColIndex==2)
{
s = renderer.ControlValue.ToString();
Console.WriteLine("Slider Value --> " + s);
gridControl1[1, 2].Text = s;
}
}
</code>
Please refer the sample in the below link that illustrates the above.
http://websamples.syncfusion.com/samples/Grid.Windows/I42133_BB/main.htm
Please let me know if you have any questions.
Regards,
Athiram S