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.
Unfortunately, activation email could not send to your email. Please try again.

DataGrid row selection

Thread ID:

Created:

Updated:

Platform:

Replies:

115397 Jan 15,2014 10:18 AM Jan 23,2014 11:44 PM WinRT 5
loading
Tags: General
Mário Queirós
Asked On January 15, 2014 10:18 AM

Hello,

I have a datagrid which I want to align vertical center the text on every row. But I have a problem, if I use the line of vertical alignment in the styles, I only can select the row when I click/press on the letters, when I click on the rest of the black space the row isn't selected. If I remove this line, now I can select the row wherever I press the row.
This is a bug, or I need to add some styling to the datagrid?

Thanks in advance for futher help.
Mário Queirós

Jai Ganesh S [Syncfusion]
Replied On January 17, 2014 06:27 AM

Hi Mario,

 

Thank you for using Syncfusion products.

 

We have analyzed your query and we are trying to reproduce the reported issue by writing the styles for GridCell and GridVirtualizingCellsControl and set as the VerticalAlignment as Center. But we are unable to reproduce the mentioned issue. Could you please share the Style that you are using in your application to set the VerticalAlignment as Center. This would be more helpful for us to serve you.

 

Please let us know if you have any queries.

 

Thank you,

Jai Ganesh S


Mário Queirós
Replied On January 20, 2014 05:55 AM

Hello,

I attached the code I used.

Thanks for the help.


styles_55a82769.zip

Jai Ganesh S [Syncfusion]
Replied On January 23, 2014 02:10 AM

Hi Mario,

 

Thank you for your update.

 

We have created a sample by apply your styles. We found that you set a HorizontalAlignment  in GridCell. If we set the HorizontalAlignment to GridCell and it is arranged based on text size. Hence the row is not selected when clicking the empty space. However, you can achieve your requirement by set ting the “TextAlignment”  property in GridColumn. We have prepared a  sample based on this and please find the sample under the following location.

 

Sample: WinrtGridSampleSelectionSample.zip

 

Please let us know if you need further assistance.

 

Thank you,

Jai Ganesh S


Mário Queirós
Replied On January 23, 2014 11:57 AM

Hello Jai.

That did the trick.

Thank you!

Jai Ganesh S [Syncfusion]
Replied On January 23, 2014 11:44 PM

Hi Mario,

 

Thank you for the update.

 

Please let us know if you have any queries.

 

Thank you,

Jai Ganesh S


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.

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.

;