Tag | GridView Posts

Very cool series about the gridview, and hopefully also some answers to my previous wonderings

http://msdn.microsoft.com/asp.net/default.aspx?pull=/library/en-us/dnaspp/html/GridViewEx05.asp

Exporting Datagrid to excel was pretty straight forward and so does exporting GridView control. The code for both of them is almost identical with one exception that in GridView we need to override the Page.VerifyRenderingInServerForm method. Check out my complete article Exporting GridView to Excel
Several days back I wrote an article Exporting Datagrid to Excel, Word and Text Files. I tried the same technique for the GridView control and was smashed with a silly error saying that GridView control must be placed inside the Form tag with runat server = true. I switched to html view and found that GridView is already inside the form tag with runat = server. I googled it and found that many people are facing this problem and no one has found a solution yet. Microsoft has classified it as a "BUG". ...
I've realized that ASP.Net is getting BLOATED with lots of “RAD” tools, and making it harder and harder to do things “the ASP.NET way” I spend hours fighting with DataGrids and GridViews. Sure they work great out of the box, but sometimes you gotta do things “outside the grid“, and thats when things get whacky... fast. For instance, last night I'm building a GridView with a set of strongly typed domain objects (via Wilson ORMapper; fantastic library). The ObjectDataSource ...
This weekend is all about GridView control :). I wrote three simple tutorials about GridView. You can read the articles on www.gridviewguy.com.
Selecting values from the checkboxes inside the GridView control is pretty simple. Check out the code below. // StringBuilder object StringBuilder str = new StringBuilder(); // Select the checkboxes from the GridView control for (int i = 0; i Checkout the complete article: Selecting Checkboxes inside the GridView Control ...
Today I put the categories component on the front page of gridviewguy so users can instantly find out how many articles belong to one category. I am planning to do more updates on the site during the weekened.
DHTML is a great scripting language. Although I have never written any DHTML scripts of my own but I have played around with few of them. DynamicDrive.com is the God of all DHTML websites. I was just browsing the website today and I found a very cool script for making tooltips. I used it in my code and it creates kinda cool effect. Check out the image below: This is loading the data from the Categories table of the Northwind database. I used simple databinding to display the contents on the screen. ...
Every website needs counter to keep track of visitors. If you are implementing a hit counter always remember to start the count from 10,000 :) just kidding. You can easily make a hit counter by using a Application variable and increase its count in Application_BeginRequest or Session_Start events for every user visit. The problem is that once the server restarts your application level variables will be reinitialized and hence they will loose all count. A good way is to store the visitor count in ...
SqlBulkCopy class in Asp.net 2.0 provides functionality to copy data from one table to another table. This transfer of data is very easy to perform. Check out the following code: string connectionString = ConfigurationManager.Connec... SqlConnection myConnection = new SqlConnection(connectionStr... SqlCommand myCommand = new SqlCommand("SELECT * FROM Person",myConnection); myConnection.Open(); SqlDataReader dr = myCommand.ExecuteReader(); SqlConnection myNewConnection ...
I just wrote an article in which I discussed that how you can upload an image to the server folder as well as the SQL Server 2000 Database. You can view the article at Uploading Images to Server Folder and SQL Server 2000 Database Enjoy !
GridViewGuy is deployed, it contains Asp.net articles, free server controls, free .NET development tools as well as list of best GridView articles. Visit the website at www.gridviewguy.com. I will be updating the website on regular basis soo visit it daily :).
I have made a small console application which you can use to add and send emails. You can use the power of Windows Scheduler to schedule an email for a particular time. The complete article can be found at Schedule an email using Windows Scheduler"
I gotta say VS 2005 is turning out to be a great product. The IDE itself is very stable, (intellisense occasionally hiccups for some reason, but I'm sure they'll figure it out.) Edit and Continue works fantastically, (in 99% of the cases)... Its only let me down when I was reloading an assembly into a sub AppDomain. I was trying to tweak it a little, within normal EnC guidelines but apparently that's beyond its ability right now... and since its such an edge case, I just deal with it. The great thing ...
I love ASP.Net. The built-in controls' viewstate tracking was such a fantastic way for the controls to “know“ what they were set to during the last postback. The validator controls with the built in Client side validation (when JavaScript was enabled) was just sheer genious! I love the new MasterPages. I love the skinning of controls... its just neat! I love the DataGrid's/GridView's ability to quickly render simple-to-render data. I hate ASP.Net. When attempting to do anything with DataGrids/GridViews, ...
.NET 1.x versions brought revolution in the Programming World and came up with features which were a blessing to developers with most of the plumbing work like Authentication, Sessions, Caching were automatically managed by .NET. .NET 2.0 version has more to be happy about. For now I will just list the new features in Whidbey and in the subsequent articles explain about each of the features. 1. CLR Integration with SQL Server 2. New Validation Controls, Validation Groups 3. Improved Caching 4. More ...
Hello everybody, I know I this post is 1-week late, but, I'll explain later what took me far away. This time I'm talking about the last MDC2005 day. This was a great day for me. I haad great sessions and discussions, I won a wireless desktop from Microsoft (keyboard and mouse), and best of all, I started a new community for Egyption developers with my Colleagues and dr. Ahmed Bahaa from IT Egypt. To me, the day began with “Using Visual Studio 2005 to build data-driven applications in ASP.NET ...
With the release of ASP.NET 2.0, Microsoft has given us some new Webcontrols that allow us to exercise a more 'Declarative' approach to website development. This is an approach that I use strongly in my current ASP.NET development and have found beneficial in many ways. In ASP.NET, declarative programming is accomplished through the use of webcontrols. Many of us already use this technique when we use the suite of existing webcontrols. Our page incorporates webcontrols and through setting properties ...
So I found ToolStrip Control Overview on MSDN under Controls You Can Use on Windows Forms . The only problem that I have found is that if you have two different toolstrips, if you try to put the second one in front of the first one it will not let you. Anyone else having this problem? I have also found overviews and classes for: WebBrowser Control which is a managed wrapper for the WebBrowser ActiveX control (about time) DataGridView Control which is a datagrid but more powerful SplitContainer Control ...
In my quest for web browser control knowledge in Visual Studio 2005 I have ended up coming across toolstips, menustrips, datagridview, and splitcontainers. So it might be a day before I put something out on this stuff.
When we say that in ASP.NET 2.0, we are actually reducing the amount of code the developer writes, we sure do mean it. And what could be a better example than the good, old DataGrid control. Rechristened as the GridView, all you are expected to do now is: Drag and drop the control in design view Courtesy the smart tags, add a data source (existing or new; and there are tons of varieties of the same) Check few checkboxes to tell if you need support for paging, row-selection, editing, deletion And ...
Its over 3 weeks since I last blogged. Yes, I know I dont blog much but then, where have I been...To start off, on the 20th of April 2004, I joined Microsoft India as a Developer Evangelist, where I am primarily responsible for working with unmanaged community in India alongwith owning MSDN events, TechED and DevDays in the country.Secondly, DevDays 2004 was around the corner and I was totally hooked onto making it run good. We previewed Microsoft Visual Studio 2005 - Generics, Partial Types, Iterators, ...
ASP.NET Whidbey Themes Developer productivity Reduce ASP.NET V1-V2 lines of code by 2/3rds Enable rich scenarios not easily possible today Administration and Management Easiest platform to manage and administer Totally Extensible Platform Replace/extend all built-in features + services Customize for any enterprise environment Performance and scalability The world’s fastest web application server Runs on a 64-bit server ASP.NET 2.0 Developer Stack New ASP.NET Building block APIs Membership. ...