easy beginner''s example GridWebControl

Hello
Is there any easy example/tutorial for the Gridwebcontrol?
I just want to use it for a holiday-preview:

Rows should be the months Jan..Dez,
columns are the days 1..31

I have studied the docs but everythink is much to difficult to begin with. At first I just want ot place the grid, set rows and columns and add color some cells manually.

Thank you for your help!

2 Replies

SD Sarathi D Syncfusion Team August 29, 2007 10:23 PM UTC

Hi Alex,

Sorry for the delay in responding to you.

Refer the following link for tutorials in GridWebControl.

http://www2.syncfusion.com/ug/Default.aspx##Essential%20Studio.chm/GridWeb/GettingStarted.html

To set the row and column values. Please use the following code.

//For setting the column values
for (int i = 0; i < 32; i++)
{
this.GridWebControl1.GridModel[0, i].CellValue = i + 1;
}

//For setting the row values
this.GridWebControl1.GridModel[1, 0].CellValue = "January";
this.GridWebControl1.GridModel[2, 0].CellValue = "February";
this.GridWebControl1.GridModel[3, 0].CellValue = "March";
this.GridWebControl1.GridModel[4, 0].CellValue = "April";
this.GridWebControl1.GridModel[5, 0].CellValue = "May";
this.GridWebControl1.GridModel[6, 0].CellValue = "June";
this.GridWebControl1.GridModel[7, 0].CellValue = "July";
this.GridWebControl1.GridModel[8, 0].CellValue = "August";
this.GridWebControl1.GridModel[9, 0].CellValue = "September";
this.GridWebControl1.GridModel[10, 0].CellValue = "October";
this.GridWebControl1.GridModel[11, 0].CellValue = "November";
this.GridWebControl1.GridModel[12, 0].CellValue = "December";

Please let me know if you have any queries.

Regards,
Sarathi



SD Sarathi D Syncfusion Team August 30, 2007 12:56 AM UTC

Hi Alex,

Sorry for the delay in responding to you.

Refer the following link for tutorials in GridWebControl.

http://www2.syncfusion.com/ug/Default.aspx##Essential%20Studio.chm/GridWeb/GettingStarted.html

To set the row and column values. Please use the following code.

//For setting the column values
for (int i = 0; i < 32; i++)
{
this.GridWebControl1.GridModel[0, i].CellValue = i + 1;
}

//For setting the row values
this.GridWebControl1.GridModel[1, 0].CellValue = "January";
this.GridWebControl1.GridModel[2, 0].CellValue = "February";
this.GridWebControl1.GridModel[3, 0].CellValue = "March";
this.GridWebControl1.GridModel[4, 0].CellValue = "April";
this.GridWebControl1.GridModel[5, 0].CellValue = "May";
this.GridWebControl1.GridModel[6, 0].CellValue = "June";
this.GridWebControl1.GridModel[7, 0].CellValue = "July";
this.GridWebControl1.GridModel[8, 0].CellValue = "August";
this.GridWebControl1.GridModel[9, 0].CellValue = "September";
this.GridWebControl1.GridModel[10, 0].CellValue = "October";
this.GridWebControl1.GridModel[11, 0].CellValue = "November";
this.GridWebControl1.GridModel[12, 0].CellValue = "December";

Please let me know if you have any queries.

Regards,
Sarathi



Loader.
Up arrow icon