<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://www.dotnetzone.gr:443/cs/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>ASP.NET WebForms</title><link>https://www.dotnetzone.gr:443/cs/forums/13/ShowForum.aspx</link><description>Θέματα για web εφαρμογές, σε ASP.NET WebForms</description><dc:language>el</dc:language><generator>CommunityServer 2.1 SP3 (Build: 20423.1)</generator><item><title>Απ: DATAGRID UPDATE</title><link>https://www.dotnetzone.gr:443/cs/forums/thread/12493.aspx</link><pubDate>Wed, 10 May 2006 19:06:50 GMT</pubDate><guid isPermaLink="false">2622095e-976c-431a-859e-16783ec7ecd7:12493</guid><dc:creator>evliatsas</dc:creator><slash:comments>0</slash:comments><comments>https://www.dotnetzone.gr:443/cs/forums/thread/12493.aspx</comments><wfw:commentRss>https://www.dotnetzone.gr:443/cs/forums/commentrss.aspx?SectionID=13&amp;PostID=12493</wfw:commentRss><description>Ένας τρόπος είναι η δημιουργία Paged Data στο DataGrid.&lt;br /&gt;
&lt;br /&gt;
Δηλαδή στο Property Window, δίνεις true στα AllowCustomPaging και AllowPaging.&lt;br /&gt;
&lt;br /&gt;
Έπειτα στον event handler του Edit Row, παίρνεις το page Index:&lt;br /&gt;
&lt;br /&gt;
int i=DataGrid1.CurrentPageIndex;&lt;br /&gt;
&lt;br /&gt;
και αμέσως μετα το DataGrid1.DataBind() δίνεις:&lt;br /&gt;
&lt;br /&gt;
DataGrid1.CurrentPageIndex=i;&lt;br /&gt;
&lt;br /&gt;
Έτσι εξασφαλίζεις ότι η εγγραφή που σε ενδιαφέρει θα είναι πάντα Visible στον χρήστη και αποφεύγεις το Scrolling. (Το οποίο το βρίσκω ενοχλητικό και σε απλό View των Data)&lt;br /&gt;
&lt;br /&gt;
Υπάρχει και σχετικό Walkthrough στο MSDN</description></item><item><title>Απ: DATAGRID UPDATE</title><link>https://www.dotnetzone.gr:443/cs/forums/thread/12385.aspx</link><pubDate>Mon, 08 May 2006 19:54:22 GMT</pubDate><guid isPermaLink="false">2622095e-976c-431a-859e-16783ec7ecd7:12385</guid><dc:creator>mcrosmar</dc:creator><slash:comments>0</slash:comments><comments>https://www.dotnetzone.gr:443/cs/forums/thread/12385.aspx</comments><wfw:commentRss>https://www.dotnetzone.gr:443/cs/forums/commentrss.aspx?SectionID=13&amp;PostID=12385</wfw:commentRss><description>Μπορείς να ρίξεις μια ματιά εδώ:&lt;br&gt;&lt;a href="http://aspnet.4guysfromrolla.com/articles/040502-1.aspx"&gt;http://aspnet.4guysfromrolla.com/articles/040502-1.aspx&lt;/a&gt;&lt;br&gt;&lt;a href="http://aspnet.4guysfromrolla.com/articles/071002-1.2.aspx"&gt;http://aspnet.4guysfromrolla.com/articles/071002-1.2.aspx&lt;/a&gt;&lt;br&gt;&lt;br&gt;</description></item><item><title>Απ: DATAGRID UPDATE</title><link>https://www.dotnetzone.gr:443/cs/forums/thread/12380.aspx</link><pubDate>Mon, 08 May 2006 18:37:28 GMT</pubDate><guid isPermaLink="false">2622095e-976c-431a-859e-16783ec7ecd7:12380</guid><dc:creator>nettraptor1</dc:creator><slash:comments>0</slash:comments><comments>https://www.dotnetzone.gr:443/cs/forums/thread/12380.aspx</comments><wfw:commentRss>https://www.dotnetzone.gr:443/cs/forums/commentrss.aspx?SectionID=13&amp;PostID=12380</wfw:commentRss><description>OK...&lt;br&gt;Μπορώ να δώ λίγο κώδικα γιαυτό γιατι δεν μπορώ να τα κααφέρω!&lt;br&gt;</description></item><item><title>Απ: DATAGRID UPDATE</title><link>https://www.dotnetzone.gr:443/cs/forums/thread/12344.aspx</link><pubDate>Sat, 06 May 2006 18:34:26 GMT</pubDate><guid isPermaLink="false">2622095e-976c-431a-859e-16783ec7ecd7:12344</guid><dc:creator>evliatsas</dc:creator><slash:comments>0</slash:comments><comments>https://www.dotnetzone.gr:443/cs/forums/thread/12344.aspx</comments><wfw:commentRss>https://www.dotnetzone.gr:443/cs/forums/commentrss.aspx?SectionID=13&amp;PostID=12344</wfw:commentRss><description>Ένας τρόπος είναι να κρατάς το rowID και μετά το UPDATE να μεταφέρεις τον δείκτη του dataGrid στο row που διορθώθηκε.&lt;br /&gt;
&lt;br /&gt;
Απ' ότι ξέρω δεν υπάρχει κάποιο property που θα σου δώσει έτοιμο το functionality αυτό.</description></item><item><title>Απ: DATAGRID UPDATE</title><link>https://www.dotnetzone.gr:443/cs/forums/thread/12318.aspx</link><pubDate>Fri, 05 May 2006 16:42:54 GMT</pubDate><guid isPermaLink="false">2622095e-976c-431a-859e-16783ec7ecd7:12318</guid><dc:creator>nettraptor1</dc:creator><slash:comments>0</slash:comments><comments>https://www.dotnetzone.gr:443/cs/forums/thread/12318.aspx</comments><wfw:commentRss>https://www.dotnetzone.gr:443/cs/forums/commentrss.aspx?SectionID=13&amp;PostID=12318</wfw:commentRss><description>Πώς αντιμετωπίζετε το φαινόμενο όταν κάνω edit σε ενα row στο τέλος της γραμμής &amp; κανει DATABΙND να μην με πάει στην αρχη της σελιδας ουτοσώστε ο χρήστης να αναγκάζετε να κάνει scroll down για να κάνει edit...&lt;br /&gt;
&lt;br /&gt;</description></item><item><title>Απ: DATAGRID UPDATE</title><link>https://www.dotnetzone.gr:443/cs/forums/thread/12312.aspx</link><pubDate>Fri, 05 May 2006 00:50:10 GMT</pubDate><guid isPermaLink="false">2622095e-976c-431a-859e-16783ec7ecd7:12312</guid><dc:creator>mxag</dc:creator><slash:comments>0</slash:comments><comments>https://www.dotnetzone.gr:443/cs/forums/thread/12312.aspx</comments><wfw:commentRss>https://www.dotnetzone.gr:443/cs/forums/commentrss.aspx?SectionID=13&amp;PostID=12312</wfw:commentRss><description>Αν κατάλαβα καλά το πρόβλημα σου είναι ότι όταν κάνεις edit το row σου εμφανίζει σε Textboxes όλα τα fields σωστά?&lt;br /&gt;
&lt;br /&gt;
Καταρχήν θα πρέπει να φτιάξεις εσύ τη δομή του Datagrid τα columns,ktl και θα βάλεις το property του Datagrid, AutoGenerateColumns="False" θα φτιάξεις τα BoundColumns στα οποία θα βάλεις property ReadOnly="true" και επομένως ΔΕ θα είναι updateable τα fields αυτά...Για περίσσοτερες πληροφορίες πώς κάνεις edit kai update ψάξε λίγο υπάρχουν χιλιάδες παραδείγματα στο web</description></item><item><title>DATAGRID UPDATE</title><link>https://www.dotnetzone.gr:443/cs/forums/thread/12307.aspx</link><pubDate>Thu, 04 May 2006 22:38:46 GMT</pubDate><guid isPermaLink="false">2622095e-976c-431a-859e-16783ec7ecd7:12307</guid><dc:creator>nettraptor1</dc:creator><slash:comments>0</slash:comments><comments>https://www.dotnetzone.gr:443/cs/forums/thread/12307.aspx</comments><wfw:commentRss>https://www.dotnetzone.gr:443/cs/forums/commentrss.aspx?SectionID=13&amp;PostID=12307</wfw:commentRss><description>Καλησπέρα..!&amp;nbsp; ΕΠΕΙΓΟΝ!!&lt;br&gt;Σε ενα asp.net web application me
vb.net προσπαθώ ΑΦΟΥ εχω γεμίσει με DATASET ενα DATAGRID στην συνέχεια
να δώσω την δυνατότητα στον χρήστη να μπορεί να αλλάζει ΜΙΑ μονο τιμή
μεσα στο grid πχ το πεδίο POINTS και να κάνει Update σε μία μία τιμή
ΜΕΣΑ στο Grid Μπορείτε να μου προτείνετε μια λύση?&lt;br&gt;&lt;br&gt;&lt;br&gt;Dim sqlStr As String = "SELECT TEAM,playerName,code,Points&amp;nbsp; FROM vMUNDIAL where player_code = " &amp;amp; code&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ' Create data adapter object&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim da As SqlDataAdapter = New SqlDataAdapter(sqlStr, SqlConnection1)&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim ds As DataSet = New DataSet&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; da.Fill(ds)&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; DataGrid1.Visible = True&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; DataGrid1.DataSource = ds&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; DataGrid1.DataBind()</description></item></channel></rss>