Prev: haftpflichtversicherung, hausratversicherung definition, hausrat wertsachen, hausratversicherungen vergleichen, hausratversicherung monatlich,
Next: snk
From: Kali on 14 Feb 2010 17:31 Could someone please tell me how I'd create the same datagrid functionality (bind,add/edit/delete) from an asp.net page into a Windows form using the DataGridView control? I am able to bind the control in the windows form but not able to get add/edit/delete functionality working? Also need drop downs, etc. in the grid. Event handlers? Buttons for each task? I'd certainly appreciate any feedback?
From: RayLopez99 on 14 Feb 2010 17:48 On Feb 15, 12:31 am, "Kali" <noem...(a)address.com> wrote: > Could someone please tell me how I'd create the same datagrid functionality > (bind,add/edit/delete) from an asp.net page into a Windows form using the > DataGridView control? I am able to bind the control in the windows form but > not able to get add/edit/delete functionality working? Also need drop > downs, etc. in the grid. Event handlers? Buttons for each task? I'd > certainly appreciate any feedback? What are you trying to do? You can do a datagrid with ASP.NET. You can do it with Forms / WPF. You can do it with Silverlight. I've done it with all three. So is that your problem? Just check out any decent textbook, for example by MacDonald. RL
From: Kali on 14 Feb 2010 18:01 Thanks for the reply. I'm just finding it extremely difficult to create the same datagrid on a windows form as I do on an asp.net page. On an asp.net page I'm able to explicitly define the columns and controls within the column, etc. but not so in a windows form. When editing the asp.net page datagrid (via click of an edit button) I can set the control types and bind them based on existing record in sql table, etc, but not so in a windows form. Can you point me to a good reference for accomplishing these tasks? "RayLopez99" <raylopez88(a)gmail.com> wrote in message news:795571ff-7c7e-44b8-9ed9-678641e5c8e0(a)z26g2000yqm.googlegroups.com... > On Feb 15, 12:31 am, "Kali" <noem...(a)address.com> wrote: >> Could someone please tell me how I'd create the same datagrid >> functionality >> (bind,add/edit/delete) from an asp.net page into a Windows form using the >> DataGridView control? I am able to bind the control in the windows form >> but >> not able to get add/edit/delete functionality working? Also need drop >> downs, etc. in the grid. Event handlers? Buttons for each task? I'd >> certainly appreciate any feedback? > > What are you trying to do? You can do a datagrid with ASP.NET. You > can do it with Forms / WPF. You can do it with Silverlight. I've > done it with all three. So is that your problem? Just check out any > decent textbook, for example by MacDonald. > > RL
From: Kali on 14 Feb 2010 18:09 Would you happen to have a sample project or code illustrating a datagridview with dropdownlists, textboxes, etc. in the datagridview and add/edit/delete fruntionality? "RayLopez99" <raylopez88(a)gmail.com> wrote in message news:795571ff-7c7e-44b8-9ed9-678641e5c8e0(a)z26g2000yqm.googlegroups.com... > On Feb 15, 12:31 am, "Kali" <noem...(a)address.com> wrote: >> Could someone please tell me how I'd create the same datagrid >> functionality >> (bind,add/edit/delete) from an asp.net page into a Windows form using the >> DataGridView control? I am able to bind the control in the windows form >> but >> not able to get add/edit/delete functionality working? Also need drop >> downs, etc. in the grid. Event handlers? Buttons for each task? I'd >> certainly appreciate any feedback? > > What are you trying to do? You can do a datagrid with ASP.NET. You > can do it with Forms / WPF. You can do it with Silverlight. I've > done it with all three. So is that your problem? Just check out any > decent textbook, for example by MacDonald. > > RL
From: RayLopez99 on 15 Feb 2010 04:38
On Feb 15, 1:01 am, "Kali" <noem...(a)address.com> wrote: > Thanks for the reply. I'm just finding it extremely difficult to create the > same datagrid on a windows form as I do on an asp.net page. On an asp.net > page I'm able to explicitly define the columns and controls within the > column, etc. but not so in a windows form. When editing the asp.net page > datagrid (via click of an edit button) I can set the control types and bind > them based on existing record in sql table, etc, but not so in a windows > form. Can you point me to a good reference for accomplishing these tasks? > I use the book by Karli Watson, "Beginning C#2005 Databases". This is the best book for Forms. It's out of print but buy it anyway--worth it*. But you know it's been a while since I used forms--I've since moved onto WPF, which is superior since you can define the columns more like ASP.NET, like you say. I recall (from memory) the trick was to click on the upper right corner of the box that defines the drag-and-drop for the datagrid--you get a bunch of properties here. It's all explained in Watson's book. RL * just checked Amazon.com: Beginning C# 2005 Databases (Programmer to Programmer) by Karli Watson (Paperback - Oct. 16, 2006) Buy new: $39.99 $26.39 28 new from $11.08 14 used from $11.03 |