Forum  General Visual ...  Announce It! ( ...  DataGridview Column Display DateTImePicker
Previous Previous
 
Next Next
New Post 5/25/2012 12:31 AM
  murali0413
11 posts
No Ranking


DataGridview Column Display DateTImePicker 
Modified By murali0413  on 5/25/2012 3:31:23 AM)

Hi Please Help DataGridview Column display DateTimePicker control.But I am trying to Application  DataGridview Control property is missing in VisualwebGui. "GetCellDisplayRectangle(e.ColumnIndex,e.RowIndex,true)".How to set the property.

Thanks

Murali

 
New Post 5/26/2012 5:15 AM
  palli
14416 posts
1st Level Poster




Re: DataGridview Column Display DateTImePicker 

 Hi Murali,

Welcome to Visual WebGUi

I hope I understand you correctly, that you want to show a DateTimePicker control inside of a DataGridView cell ?

First to note is the inevitable platform difference between a desktop (Windows Forms) application and a web (Visual WebGui) application. You can see more on this subject here. In short, and related to your case, the Windows Forms's drawing and graphical methods are not implemented in Visual WebGui so you will need to use another approach for this customization.

There are two kinds of approaches that you can take for this customizations. First, you can define your own custom column type and we have a sample of a custom combobox column in our CompanionKit here. Second, each cell of a DataGridView has an initially hidden Panel associated with it, which can be made visible and will in that case be shown in place of the standard cell contents. The panel option is more powerful in the sense that you can have the panel span multiple columns and rows, but a custom column type may be more convenient to use. More info on the DataGridViewCellPanel can be found here and more info on the DataGridView here.

Hope this helps,

Palli


Páll Björnsson - Visual WebGui support team - Email: support@visualwebgui.com
 
Previous Previous
 
Next Next
  Forum  General Visual ...  Announce It! ( ...  DataGridview Column Display DateTImePicker
.NET HTML5 Web, Cloud and Mobile application delivery | Sitemap | Terms of Use | Privacy Statement | Copyright © 2005-2012 Visual WebGui®       Visual WebGui weblog on ASP.NET Gizmox Blog Visual WebGui Group on LinkedIn Visual WebGui updates on Twitter Visual WebGui Page on Facebook Visual WebGui YouTube Channel Visual WebGui Platform News RSS