We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on : Nov 16th 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

easy beginner''s example GridWebControl

Thread ID:

Created:

Updated:

Platform:

Replies:

67655 Aug 27,2007 01:44 PM UTC Aug 30,2007 12:56 AM UTC ASP.NET Web Forms (Classic) 2
loading
Tags: GridGroupingControl
Alex
Asked On August 27, 2007 01:44 PM UTC

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!

Sarathi D [Syncfusion]
Replied On 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


Sarathi D [Syncfusion]
Replied On 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



CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

;