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
close icon

Grid Control

Hi

I'm trying to find out a way to show a new row like Access database table. If you go to the last row you can see a row with an asterisk as row marker to show it as the new row waiting to be inserted. Is it possible to do that in Grid control? How and what should I do? Any help appreciated.

Thanks
Sudha

1 Reply

JJ Jisha Joy Syncfusion Team September 28, 2007 12:45 PM UTC

Hi Sudha,

Thank you for your interest in Syncfusion products.

By handling the event CurrentCellChanged in GridControl it is possible to show a new row waiting to be inserted when we go to the last row in the GridControl.
Here is the code snippets:

void gridControl1_CurrentCellChanged(object sender, EventArgs e)
{
if (gridControl1.CurrentCell.RowIndex == gridControl1.RowCount)
{ gridControl1.RowCount++;
}
}


Please refer the following sample that illustrate the same:
http://websamples.syncfusion.com/samples/Grid.Windows/68679/main.htm

For showing icon in header cell please refer the following Knowledge Base article:
http://www.syncfusion.com/support/kb/grid/Default.aspx?ToDo=view&questId=23

Please let me know if you have any questions.

Regards,
Jisha

Loader.
Live Chat Icon For mobile
Up arrow icon