Click here to Skip to main content
15,887,485 members
Home / Discussions / C#
   

C#

 
GeneralRe: Size of Color struct? Pin
Luc Pattyn14-Mar-09 4:51
sitebuilderLuc Pattyn14-Mar-09 4:51 
AnswerRe: Size of Color struct? Pin
Luc Pattyn14-Mar-09 4:48
sitebuilderLuc Pattyn14-Mar-09 4:48 
GeneralRe: Size of Color struct? Pin
Xmen Real 14-Mar-09 5:48
professional Xmen Real 14-Mar-09 5:48 
GeneralRe: Size of Color struct? Pin
Luc Pattyn14-Mar-09 6:03
sitebuilderLuc Pattyn14-Mar-09 6:03 
GeneralRe: Size of Color struct? Pin
Xmen Real 14-Mar-09 6:10
professional Xmen Real 14-Mar-09 6:10 
GeneralRe: Size of Color struct? Pin
Luc Pattyn14-Mar-09 6:43
sitebuilderLuc Pattyn14-Mar-09 6:43 
QuestionHow to load the right Interop Assembly in runtime ? Pin
Yanshof14-Mar-09 2:34
Yanshof14-Mar-09 2:34 
QuestionGridview updation problem Pin
muhammadafsal14-Mar-09 1:52
muhammadafsal14-Mar-09 1:52 
How to retrieve data from sqldatabase to gridview's top row.
now i can display data from databse to gridview,but i need to retreve last updated data from database to gridview's top row.

source code:
<asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" Style="z-index: 120;
left: 59px; position: absolute; top: 457px" CellPadding="4" ForeColor="#333333" GridLines="None" Height="170px" Width="890px" AllowSorting="True" BorderWidth="2px" CellSpacing="5">
<Columns>
<asp:BoundField DataField="date" HeaderText="Date" InsertVisible="False" />
<asp:BoundField DataField="description" HeaderText="Description" />
<asp:HyperLinkField DataNavigateUrlFields="url" DataTextField="title" HeaderText="Click here to read more"
NavigateUrl="url" Target="_parent" />
<asp:BoundField DataField="country" HeaderText="Country" />
<asp:BoundField DataField="city" HeaderText="City" />
<asp:BoundField DataField="author" HeaderText="Author" />
</Columns>
<FooterStyle BackColor="#990000" Font-Bold="True" ForeColor="White" />
<RowStyle BackColor="#CCCCFF" ForeColor="#333333" />
<SelectedRowStyle BackColor="#FFCC66" Font-Bold="True" ForeColor="Navy" />
<PagerStyle BackColor="#FFCC66" ForeColor="#333333" HorizontalAlign="Center" />
<HeaderStyle BackColor="#990000" Font-Bold="True" ForeColor="White" />
<AlternatingRowStyle BackColor="White" />
</asp:GridView>



c# code:
protected void Page_Load(object sender, EventArgs e)
{

string m;
m = Request.QueryString["a"].ToString();

TextBox1.Text = m;

if (!IsPostBack)
show();


}
private void show()
{
adp = new SqlDataAdapter("select date ,title ,url ,description, author, city,country from postupdation ", con);
adp .Fill (ds);
GridView1.DataSource = ds;
GridView1.DataBind();
// GridView2.Visible = true;



}


can any one pls help me
AnswerRe: Gridview updation problem Pin
Blue_Boy14-Mar-09 2:33
Blue_Boy14-Mar-09 2:33 
QuestionIdle processing in windows forms Pin
saksp14-Mar-09 1:19
saksp14-Mar-09 1:19 
AnswerRe: Idle processing in windows forms Pin
dataminers14-Mar-09 1:41
dataminers14-Mar-09 1:41 
GeneralRe: Idle processing in windows forms Pin
saksp14-Mar-09 2:19
saksp14-Mar-09 2:19 
AnswerRe: Idle processing in windows forms Pin
Luc Pattyn14-Mar-09 3:13
sitebuilderLuc Pattyn14-Mar-09 3:13 
GeneralRe: Idle processing in windows forms Pin
#realJSOP14-Mar-09 3:33
mve#realJSOP14-Mar-09 3:33 
GeneralRe: Idle processing in windows forms Pin
Luc Pattyn14-Mar-09 3:59
sitebuilderLuc Pattyn14-Mar-09 3:59 
Questionbutton size srinks more in table layout panel Pin
Maddie from Dartford14-Mar-09 0:40
Maddie from Dartford14-Mar-09 0:40 
AnswerRe: button size srinks more in table layout panel Pin
fly90414-Mar-09 1:45
fly90414-Mar-09 1:45 
AnswerRe: button size srinks more in table layout panel Pin
Navneet Hegde14-Mar-09 2:29
Navneet Hegde14-Mar-09 2:29 
GeneralRe: button size srinks more in table layout panel Pin
Maddie from Dartford14-Mar-09 3:23
Maddie from Dartford14-Mar-09 3:23 
QuestionA class without Main Pin
Akash Chavhan14-Mar-09 0:03
Akash Chavhan14-Mar-09 0:03 
AnswerRe: A class without Main Pin
DaveyM6914-Mar-09 0:24
professionalDaveyM6914-Mar-09 0:24 
AnswerRe: A class without Main Pin
harold aptroot14-Mar-09 0:46
harold aptroot14-Mar-09 0:46 
Questionbrowser problem with visual studio 2005 Pin
maheshsahini13-Mar-09 20:02
maheshsahini13-Mar-09 20:02 
AnswerRe: browser problem with visual studio 2005 Pin
Mycroft Holmes13-Mar-09 23:41
professionalMycroft Holmes13-Mar-09 23:41 
GeneralRe: browser problem with visual studio 2005 Pin
maheshsahini14-Mar-09 0:07
maheshsahini14-Mar-09 0:07 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.