Click here to Skip to main content
15,893,337 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: how to fix datagrid column width/height when AutoGeneratedColumns is ture? Pin
steven_wong15-Oct-06 14:08
steven_wong15-Oct-06 14:08 
GeneralRe: how to fix datagrid column width/height when AutoGeneratedColumns is ture? Pin
miniThomas15-Oct-06 18:58
miniThomas15-Oct-06 18:58 
GeneralRe: how to fix datagrid column width/height when AutoGeneratedColumns is ture? Pin
Mike Ellison16-Oct-06 8:02
Mike Ellison16-Oct-06 8:02 
GeneralRe: how to fix datagrid column width/height when AutoGeneratedColumns is ture? Pin
Mike Ellison16-Oct-06 8:02
Mike Ellison16-Oct-06 8:02 
QuestionSorting Datagrid Pin
happyheartcs12-Oct-06 2:40
happyheartcs12-Oct-06 2:40 
AnswerRe: Sorting Datagrid Pin
varuni6512-Oct-06 3:04
varuni6512-Oct-06 3:04 
AnswerRe: Sorting Datagrid Pin
postmaster@programmingknowledge.com12-Oct-06 5:13
postmaster@programmingknowledge.com12-Oct-06 5:13 
AnswerRe: Sorting Datagrid Pin
Britney S. Morales12-Oct-06 9:38
Britney S. Morales12-Oct-06 9:38 
Change the allowSorting datagrid property to true
go to Columns property, select the field what you want to sort, write onto the SortExpression the same column datafield.

On datagrid sorting function
<br />
protected void Grid_Sorting(object sender, GridViewSortEventArgs e)<br />
    {<br />
        string sql = "SELECT * FROM table WHERE conditions ORDER BY " + e.SortExpression;<br />
        SqlDataAdapter data_Adapter = new SqlDataAdapter(sql, conexxxion);<br />
        DataSet dataSet = new DataSet();<br />
        data_Adapter.Fill(dataSet);<br />
        Grid.DataSource = dataSet.Tables[0].DefaultView;<br />
        Grid.DataBind();<br />
    }<br />


you can do it with all datagrid columns

Rose | [Rose]





keep Learning and you never will be out of date...

Questionhow to delete unuser email userid automatically after 24 hours Pin
dhatchu12-Oct-06 2:34
dhatchu12-Oct-06 2:34 
AnswerRe: how to delete unuser email userid automatically after 24 hours Pin
Vasudevan Deepak Kumar12-Oct-06 4:21
Vasudevan Deepak Kumar12-Oct-06 4:21 
QuestionDisplay OpenFileDialog On click event of ImageButton using ASP.NET & C# Pin
Soniya_k12-Oct-06 2:34
Soniya_k12-Oct-06 2:34 
AnswerRe: Display OpenFileDialog On click event of ImageButton using ASP.NET & C# Pin
Vasudevan Deepak Kumar12-Oct-06 4:22
Vasudevan Deepak Kumar12-Oct-06 4:22 
QuestionProblem : How to Extract The Zip file Pin
Amit Agarrwal12-Oct-06 1:28
Amit Agarrwal12-Oct-06 1:28 
AnswerRe: Problem : How to Extract The Zip file Pin
Vasudevan Deepak Kumar12-Oct-06 4:23
Vasudevan Deepak Kumar12-Oct-06 4:23 
GeneralRe: Problem : How to Extract The Zip file Pin
Amit Agarrwal12-Oct-06 19:00
Amit Agarrwal12-Oct-06 19:00 
QuestionExporting to Excel Plz help Pin
Jeeva Mary Varghese12-Oct-06 1:01
Jeeva Mary Varghese12-Oct-06 1:01 
AnswerRe: Exporting to Excel Plz help Pin
steven_wong12-Oct-06 2:36
steven_wong12-Oct-06 2:36 
GeneralRe: Exporting to Excel Plz help [modified] Pin
Jeeva Mary Varghese13-Oct-06 20:54
Jeeva Mary Varghese13-Oct-06 20:54 
GeneralRe: Exporting to Excel Plz help Pin
steven_wong14-Oct-06 0:40
steven_wong14-Oct-06 0:40 
GeneralRe: Exporting to Excel Plz help Pin
Jeeva Mary Varghese18-Oct-06 2:15
Jeeva Mary Varghese18-Oct-06 2:15 
GeneralRe: Exporting to Excel Plz help Pin
steven_wong18-Oct-06 21:05
steven_wong18-Oct-06 21:05 
QuestionData Set Pin
shah zad12-Oct-06 0:42
shah zad12-Oct-06 0:42 
AnswerRe: Data Set Pin
_AK_12-Oct-06 0:51
_AK_12-Oct-06 0:51 
AnswerRe: Data Set Pin
rah_sin12-Oct-06 0:59
professionalrah_sin12-Oct-06 0:59 
QuestionA problem when using HttpWebRequest Pin
Robert Wang198311-Oct-06 23:48
Robert Wang198311-Oct-06 23:48 

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.