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

CheckBox in Virtual Grid

Thread ID:

Created:

Updated:

Platform:

Replies:

67017 Aug 7,2007 03:04 PM UTC Aug 14,2007 09:03 AM UTC WinForms 2
loading
Tags: GridControl
Qingde Shi
Asked On August 7, 2007 03:04 PM UTC

Hi,

How could I make CheckBox in Virtual Grid clickable?

Thanks.

Q

Here is the code I use:
private void gridControl1_QueryCellInfo(object sender, Syncfusion.Windows.Forms.Grid.GridQueryCellInfoEventArgs e)
{
if (e.RowIndex == 2 && e.ColIndex == 2)
{
e.Style.CellValue = true;
e.Style.Description = "Something";
e.Style.CellType = "CheckBox";
e.Style.TriState = false;
e.Handled = true;
}

}

Qingde Shi
Replied On August 7, 2007 03:45 PM UTC

Well, I think I found this out. you have to handle SaveCellInfo event. somehow this is bit different from celltype like TextBox, in that, if you do not handling SaveCellInfo, it still appears editable.

>Hi,

How could I make CheckBox in Virtual Grid clickable?

Thanks.

Q

Here is the code I use:
private void gridControl1_QueryCellInfo(object sender, Syncfusion.Windows.Forms.Grid.GridQueryCellInfoEventArgs e)
{
if (e.RowIndex == 2 && e.ColIndex == 2)
{
e.Style.CellValue = true;
e.Style.Description = "Something";
e.Style.CellType = "CheckBox";
e.Style.TriState = false;
e.Handled = true;
}

}

Golda Rebecal [Syncfusion]
Replied On August 14, 2007 09:03 AM UTC

Hi,

If the cell type is CheckBox, the SaveCellInfo event is immediately fired when we click on the CheckBox. If we do not handle this event, the value is not saved and CheckBox retains its original value and appears as non-editable. But in the case of TextBox, SaveCellInfo event is fired only after we finish editing.

Kindly let me know if you have any questions.

Best regards,
Golda

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

;