回复 1楼wotangjing的帖子
1.Spread WPF-Silverlight 平台目前不支持内置编辑器。
2.数据验证需要自定义,在 EditEnd 事件中获取输入内容,手动校验。
- private void GcSpreadSheet_EditEnd(object sender, GrapeCity.Windows.SpreadSheet.UI.EditCellEventArgs e)
- {
- string text = this.gcspreadsheet1.Sheets[0].Cells[e.Row, e.Column].Text;
- //校验
- }
复制代码
3.浮动提示功能目前无法支持。不过可以通过添加浮动对象来模拟:
- public class MyFloatingObject : GrapeCity.Windows.SpreadSheet.UI.CustomFloatingObject
- {
- public MyFloatingObject(string name, double x, double y, double width, double height)
- : base(name, x, y, width, height)
- {
- }
- public override FrameworkElement Content
- {
- get
- {
- Border border = new Border();
- StackPanel sp = new StackPanel();
- sp.Children.Add(new Label() { Content = "Label" });
- sp.Children.Add(new Button() { Content = "Button" });
- border.BorderThickness = new Thickness(1);
- border.BorderBrush = new SolidColorBrush(Colors.Black);
- border.Child = sp;
- return border;
- }
- }
- }
- //add instance of this floating object into worksheet
- MyFloatingObject mf = new MyFloatingObject("mf1", 10, 10, 200, 100);
- gcSpreadSheet1.ActiveSheet.FloatingObjects.Add(mf);
复制代码
目前还没有明确的开发计划 |