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: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How to check weather the row is empty or not?

Thread ID:

Created:

Updated:

Platform:

Replies:

119243 May 28,2015 01:41 PM UTC May 29,2015 06:07 PM UTC WPF 1
loading
Tags: GridControl
Basavaraj Angadi
Asked On May 28, 2015 01:41 PM UTC

Hi 
By providing row number are we able to find wether the Row is Empty or Not ?

grid.Model[rowIndex, columnIndex]  ???

Regards


Kanimozhi Bharathi [Syncfusion]
Replied On May 29, 2015 06:07 PM UTC

Hi Basavaraj,

Thank you for contacting Syncfusion Suppport

We have analyzed your query. You can get the current cell is empty or not by checking if the current cell value of grid is empty or not like the below snippet,

CODE SNIPPET:

var row = grid.CurrentCell.RowIndex;

var col = grid.CurrentCell.ColumnIndex;

 if (grid.Model[row,col].CellValue == string.Empty)

       MessageBox.Show("empty");


To check the whole row is empty or not, we need to check the every cell value in the current row by using for loop. We have also prepared a sample based on your requirement. Please find the attached sample below.

Sample: http://www.syncfusion.com/downloads/support/forum/119243/ze/WpfApplication81520447709

Please let us know if you have any queries.

Thanks

Kanimozhi B


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

;