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 do i assign text for PushButton in griddataboundgrid in a single column cells

Thread ID:





116538 Jun 7,2014 04:20 AM UTC Jun 9,2014 08:47 AM UTC WinForms 2
Tags: GridDataBoundGrid(Classic)
Asked On June 7, 2014 04:20 AM UTC

I have a GridDataBoundGrid With the Columns Item_Id, Item_Name, Item_Price,Item_Edit, Item_Delete columns. Edit and Delete columns are PushButtons, But I am not able to assign text for that pushbutton, Is It possible to do or not??

I tried this code...

 private void gridDataBoundGrid1_PrepareViewStyleInfo(object sender, Syncfusion.Windows.Forms.Grid.GridPrepareViewStyleInfoEventArgs e)
            if (e.ColIndex == 3 && e.RowIndex > 0)
                e.Style.CellType = "PushButton";               
                e.Style.Text = "Edit Button";
                e.Style.CellAppearance = Syncfusion.Windows.Forms.Grid.GridCellAppearance.Raised;                

            if (e.ColIndex == 4 && e.RowIndex > 0)
                e.Style.Text = "Delete Button";
                e.Style.CellType = "PushButton";                
                e.Style.CellAppearance = Syncfusion.Windows.Forms.Grid.GridCellAppearance.Raised;                
Thanks in Advance....

Replied On June 7, 2014 04:28 AM UTC

Oops... Sorry and Thanks and I just finished it.....

Muthukumar Kalyanasundaram [Syncfusion]
Replied On June 9, 2014 08:47 AM UTC

Hi Narry,

Thanks for your interest in Syncfusion products.
Please let us know if you require any assistance.

Muthukumar K


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.

Please sign in to access our forum

or the page will be automatically redirected to sign-in page in 10 seconds.

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