Can someone please please help me
-
I don't like to rely always on the drag and drop features of the designer so I'm wanting to code this manually. Or at least do it in a way that is very managable. Can someone help me specifically in making a simply datagrid I am not sure how to do this in code. I'm assuming I need a dataconnection a dataadapter a dataset. I simply basic tutorial on this using a database would be wonderful then I could see how its done. this stuff is so confusing :( I'm using the new visual studios 2005 Basically need to know how to code the dataset, the adapter and sql strings and all so i can hit a button do a query and it populate the dataset and then the dataview. Thanks or your help. I'll am asking for is a really good tutorial hopefull noone thinks i'm not willing to learn cause thats nt the case at all. Win32newb "Programming is like Sex, make a mistake and you end up providing support for a long time"
-
I don't like to rely always on the drag and drop features of the designer so I'm wanting to code this manually. Or at least do it in a way that is very managable. Can someone help me specifically in making a simply datagrid I am not sure how to do this in code. I'm assuming I need a dataconnection a dataadapter a dataset. I simply basic tutorial on this using a database would be wonderful then I could see how its done. this stuff is so confusing :( I'm using the new visual studios 2005 Basically need to know how to code the dataset, the adapter and sql strings and all so i can hit a button do a query and it populate the dataset and then the dataview. Thanks or your help. I'll am asking for is a really good tutorial hopefull noone thinks i'm not willing to learn cause thats nt the case at all. Win32newb "Programming is like Sex, make a mistake and you end up providing support for a long time"
Simple. The designer actually places the http://www.lavanyadeepak.tk/ I Blog At: http://www.dotnetjunkies.com/weblog/deepak/
http://deepakvasudevan.blogspot.com/
http://deepak.blogdrive.com/ -
I don't like to rely always on the drag and drop features of the designer so I'm wanting to code this manually. Or at least do it in a way that is very managable. Can someone help me specifically in making a simply datagrid I am not sure how to do this in code. I'm assuming I need a dataconnection a dataadapter a dataset. I simply basic tutorial on this using a database would be wonderful then I could see how its done. this stuff is so confusing :( I'm using the new visual studios 2005 Basically need to know how to code the dataset, the adapter and sql strings and all so i can hit a button do a query and it populate the dataset and then the dataview. Thanks or your help. I'll am asking for is a really good tutorial hopefull noone thinks i'm not willing to learn cause thats nt the case at all. Win32newb "Programming is like Sex, make a mistake and you end up providing support for a long time"
The databgrid is ooloking for an object the implements the IList Like a DataTable or an ArrayList SqlConnection sqlConn = new SqlConnection(myconnection string); sqlCommand cmd = new SqlCommand("my query", sqlConn); sqlConn.Open(); SqlDataAdapter adapt = new SqlDataAdapter(); adapt.SelectCommand = cmd; DataTable dt = new DataTable("dt"); adapt.Fill( dt ); myDataGrid.DataSource = dt; myDataGrid.DataBind(); 1 line of code equals many bugs. So don't write any!!