iSeller Commerce
iSeller POS Retail
iSeller POS F&B
iSeller POS Express
Crosslight
WebUI
ClientUI
What's New
Download Trial
Web Solution
Mobile Solution
Enterprise Solution
Custom Development
Blog
Community
Latest Development Blogs
ForumPostTopic
Browse By Tag
Is there a way to mark with different colour or whatever other means those cells that are editable. ie EditType property set to other than "NoEdit"?
When users click anywhere on editable row, the cells colour turns white this leads the users to think that that cell can be edited. Frustration then soon sets in before they figure out it is not editable, but the next cell on that row is.
Hi Rudy,
To mark non editable type with a different color in specific cell, you have to set the cell to non editable in code behind by setting ForceNoEdit to true in the cell. Please take a look at the snippet code bellow :
protected void WebGrid1_InitializeRow(object sender, ISNet.WebUI.WebGrid.RowEventArgs e) { e.Row.Cells.GetNamedItem("CategoryID").ForceNoEdit = true; // you can validate which cells that you want to set in true or false. if (e.Row.Cells.GetNamedItem("CategoryID").ForceNoEdit == true) { e.Row.Cells.GetNamedItem("CategoryID").Style.BackColor = System.Drawing.Color.SkyBlue; } }
For your information, you should not set edit type in WebGrid.NET designer if you want to get a cell, because EditType in WebGrid.NET designer is define a column not a cell.
Hope this helps.Riendy
or
Choose this if you're already a member of Intersoft Community Forum. You can link your OpenID account to your existing Intersoft Social ID.
Choose this if you don't have an Intersoft account yet. Your authenticated OpenID will be automatically linked to your new Intersoft account.
Enter your Wordpress Blogname