Forum  Core :: SDK (Vi...  Using the Visua...  DataGridView Custom Controls
Previous Previous
 
Next Next
New Post 4/17/2009 1:04 AM
  x_Vanish
8 posts
No Ranking


Re: DataGridView Custom Controls 

thanks for your interest,

i think there is tree ways for how user  screen will be seen.

1 ) on top there is a datagrid and controls are below the grid for user to edit the datagrid row

2) we will have the editing in datagrid view with custom and normal datagridview editing controls.

3) we can open a new form wiht bounded controls to edit a datagridview row.

And i saw that the columns on datagrid sould be double clicked to edit in silverlight . Its same in vwg, too. Tab key is not navigates to next column. (perhaps needs some programming i dont know)

And the column witdh can be small for showing the editing control and for editing int the grid cell. And i think you say a good way; a new form will be better for user to edit values quickly.

I hope i understand you right? And i hope this is the most common way? Thanks for all help.

 
New Post 4/17/2009 12:06 PM
  palli
11824 posts
1st Level Poster




Re: DataGridView Custom Controls 

Hi,

Yes, I think you have got the point and are on the right track.

First I would like to note that the DataGridView control is one of the most complicated controls in VWG. It has had quite a lot of issues, and a very big chunk of those issues are being fixed in the upcoming 6.4 version.

I personally was really hooked on the DataGridView in the beginning, and there are ways to make this work as you can see from the sample applications I directed you to.

Recently, I have turned away from the DataGridView, and currently I'm much more into using the ListView, and then open a seperate editing windows for changing the data. It needs some extra buttons (or context menus or something) to provide you with means of adding new records and deleting records, but on the whole, my applications are much simpler this way, and you get all the data changes in one place.

In my code, I usually create the editing form, attach a function to the Closed event of that form and then show the form as dialog. In that form I have the "OK" (or update, or save) button set the DialogResult to OK if the user decides to save, and then close the editing form. In the parent form the Closed handler gets called and in there I check the DialogResult.

Doing it this way, you move all your update logic into one procedure, the Closed handler on your parent form.

Hope this helps,

Palli

 


Páll Björnsson - Visual WebGui support team - Email: support@visualwebgui.com
 
Previous Previous
 
Next Next
  Forum  Core :: SDK (Vi...  Using the Visua...  DataGridView Custom Controls
CompanionKit Bottom
.NET Web, Cloud and Mobile application delivery platform | Sitemap | Terms of Use | Privacy Statement | Copyright © 2005-2011 Visual WebGui®       Visual WebGui weblog on ASP.NET Visual WebGui Group on LinkedIn Visual WebGui updates on Twitter Visual WebGui Page on Facebook Visual WebGui YouTube Channel Visual WebGui Platform News RSS