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. Image for the cookie policy date

Selecting individual cells in grid

Hi guys,

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

thanks,
Peter


5 Replies

RP Rekha P Syncfusion Team 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



PK Peter Kovacs 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.



RP Rekha P Syncfusion Team 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



AD Administrator Syncfusion Team 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




PK Peter Kovacs April 1, 2009 01:10 PM UTC

Hi,

I tried it, and it works great.

Thanks,
Peter


Loader.
Live Chat Icon For mobile
Up arrow icon