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.

How do i assign text for PushButton in griddataboundgrid in a single column cells

Thread ID:

Created:

Updated:

Platform:

Replies:

116538 Jun 7,2014 12:20 AM Jun 9,2014 04:47 AM Windows Forms 2
loading
Tags: GridDataBoundGrid(Classic)
Narry
Asked On June 7, 2014 12:20 AM

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....

Narry
Replied On June 7, 2014 12:28 AM

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

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

Hi Narry,

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

Regards,
Muthukumar K

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.

;