Below is my part of code:
I am using GridControl
in my project and I would like to put some Input in first column of each row only.
I know my code is wrong.Kindly make it correct by suggesting me.
for(int i=0;i<e.RowIndex;i++)
{
for(int j=0;j<e.ColIndex;j++)
{
if(i+j==0)
e.Style.CellValue = string.Format("Dwww");
int choice = j> i ? i : 99999999;
switch(choice)
{
case 0:
// e.Style.CellValue = string.Format("Derivative");
break;
case 1:
e.Style.CellValue = string.Format("D");
break;
case 2:
e.Style.CellValue = string.Format("ative");
break;
case 3:
e.Style.CellValue = string.Format("Dere");
break;
case 4:
e.Style.CellValue = string.Format("tive");
break;
case 5:
e.Style.CellValue = string.Format("ivati");
break;
case 6:
e.Style.CellValue = string.Format("ankle");
break;
case 7:
e.Style.CellValue = string.Format("ankit");
break;
case 8:
e.Style.CellValue = string.Format("sr");
break;
case 9:
e.Style.CellValue = string.Format("Dsr");
break;
default:
break;
}
}
}
what is the logic for it?
How do I code?