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

Selecting individual cells in grid

Thread ID:

Created:

Updated:

Platform:

Replies:

80299 Mar 27,2009 01:13 PM UTC Apr 1,2009 01:10 PM UTC ASP.NET Web Forms (Classic) 5
loading
Tags: GridGroupingControl
Peter Kovacs
Asked On March 27, 2009 01:13 PM UTC

Hi guys,

is it possible to select individual cells of grid instead of full rows? If yes how can I use this?

thanks,
Peter


Rekha P [Syncfusion]
Replied On March 31, 2009 12:15 PM UTC

Hi Peter,

Thank you for your interest in Syncfusion Products.

Yes, it is possible to select the individual grid cells by enabling ExcelEditMode property in Grid. The Essential Grid provides support for Excel Like Edit for all editable fields. This feature offers cell in-line editing, cell selection, row selection. Please refer the code snippet below to enable ExcelEditMode.

runat="server" DataSourceCachingMode="ViewState" AutoFormat="Office 2003 Blue"
ExcelEditMode="true" ExcelEditAutoUpdate="true">



Please refer the sample below which illustrates selecting individual grid cells.

http://files.syncfusion.com/support/GGC.Web/7.1.0.30/F80072/main.htm

Also please find the documentation for ExcelEditMode.

http://files.syncfusion.com/GGC.Web/7.1.0.30/F80072/ExcelLikeEdit.zip

We appreciate your patience and please let me know if this helps you.

Thanks,
Rekha


Peter Kovacs
Replied On March 31, 2009 01:13 PM UTC

Hi Rekha,

I tried it and works, but it is not what I had in mind. I just need to select a cell (without the ability to edit it) and get its value. I just hoped it could be done without any serious JavaScript hacking, because I'm kinda new to web development (and Javascript).
If there is some easy way to achieve this it would be useful to know.

Thanks,
Peter

PS: The link to the documentation for ExcelEditMode doesn't work.


Rekha P [Syncfusion]
Replied On April 1, 2009 06:19 AM UTC

Hi Peter,

You can access the currently selected row using the client side event ClientSideOnRecordClick, which loads with currently selected row in GridGroupingControl using Row property. Also you can access a particular column's value using its GetValue method. Please refer the code snippet below to achieve this.

[Javascript]



Please refer the sample below which illustrates above.
http://files.syncfusion.com/support/GGC.Web/7.1.0.30/F80299_1/main.htm

We are sorry for providing you wrong sample links in the previous update, please refer the updated links from below .
Sample:
http://files.syncfusion.com/support/GGC.Web/7.1.0.30/F80299/main.htm

ExcelLikeEdit Documentation:
http://files.syncfusion.com/support/GGC.Web/7.1.0.30/F80299/ExcelLikeEdit.zip

Please let me know if this sample helps you.

Thanks,
Rekha


Administrator [Syncfusion]
Replied On April 1, 2009 09:32 AM UTC

Thank you for the answer, it looks very promising. When I have the time, I'll try it, and get back to you (probably tomorrow, now I have other stuff to do).

Regards,
Peter



Peter Kovacs
Replied On April 1, 2009 01:10 PM UTC

Hi,

I tried it, and it works great.

Thanks,
Peter


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

;