Click here to Skip to main content
15,918,193 members
Home / Discussions / C#
   

C#

 
AnswerRe: how to change this in C# ? Pin
Luc Pattyn2-Jul-07 3:08
sitebuilderLuc Pattyn2-Jul-07 3:08 
GeneralRe: how to change this in C# ? Pin
Martin#2-Jul-07 3:19
Martin#2-Jul-07 3:19 
GeneralRe: how to change this in C# ? Pin
Luc Pattyn2-Jul-07 3:29
sitebuilderLuc Pattyn2-Jul-07 3:29 
GeneralRe: how to change this in C# ? Pin
Martin#2-Jul-07 3:32
Martin#2-Jul-07 3:32 
GeneralRe: how to change this in C# ? Pin
Luc Pattyn2-Jul-07 3:54
sitebuilderLuc Pattyn2-Jul-07 3:54 
QuestionHow to read the words from a pdf? Pin
Tomerland2-Jul-07 2:19
Tomerland2-Jul-07 2:19 
AnswerRe: How to read the words from a pdf? Pin
CPallini2-Jul-07 3:43
mveCPallini2-Jul-07 3:43 
QuestionDataGrid paging not working Pin
Jax_qqq2-Jul-07 1:26
Jax_qqq2-Jul-07 1:26 
Hi all,

I am reandering a Data Grid from my web part containing a paging event its giving me post back but grid is rendering twise on the page.

Any suggestion???


<br />
        protected override void CreateChildControls()<br />
        {<br />
            DataTable data = null;<br />
            string[] columnArray = null;<br />
            bool IsColumns = false;<br />
            DataTableValidationStatus tableStatus;<br />
<br />
            try<br />
            {<br />
                if (!String.IsNullOrEmpty(Columns))<br />
                {<br />
                    columnArray = Columns.Replace(" ", "").Split(',');<br />
                    IsColumns = true;<br />
                }<br />
<br />
                data = GetDataTable();<br />
                tableStatus = Utility.ValidateDataTable(data, true, true, IsColumns, columnArray);<br />
<br />
                if (tableStatus == DataTableValidationStatus.Valid)<br />
                {<br />
                    data.Locale = System.Globalization.CultureInfo.InvariantCulture;<br />
<br />
                    grid.EnableViewState = true;<br />
                    grid.AutoGenerateColumns = false;<br />
                    grid.AllowPaging = true;<br />
                    grid.PageSize = PageSize;<br />
                    grid.CurrentPageIndex = currentpageindex;<br />
                    grid.PagerStyle.Mode = PagerMode.NextPrev;<br />
                    grid.PagerStyle.CssClass = PagerStyleCssClass;<br />
<br />
                    grid.CssClass = GridCssClass;<br />
                    grid.AlternatingItemStyle.CssClass = AlternatCssClass;<br />
                    grid.HeaderStyle.CssClass = HeaderCssClass;<br />
                    grid.ItemStyle.CssClass = ItemCssClass;<br />
<br />
                    grid.Width = System.Web.UI.WebControls.Unit.Percentage(100);<br />
<br />
                    grid.PageIndexChanged += new DataGridPageChangedEventHandler(this.grid_PageIndexChanged);<br />
<br />
                    grid.DataSource = data;<br />
                    grid.DataBind();<br />
                    Controls.Add(grid);<br />
                }<br />
}<br />
<br />
        private void grid_PageIndexChanged(object source, System.Web.UI.WebControls.DataGridPageChangedEventArgs e)<br />
        {<br />
            currentpageindex = e.NewPageIndex;<br />
            BindGrid();<br />
        }<br />


Anuj

QuestionLine code Pin
merwa2-Jul-07 1:16
merwa2-Jul-07 1:16 
AnswerRe: Line code Pin
Jimmanuel2-Jul-07 2:36
Jimmanuel2-Jul-07 2:36 
QuestionTCP channel v/s HTTP channel Pin
amitcoder832-Jul-07 0:35
amitcoder832-Jul-07 0:35 
AnswerRe: TCP channel v/s HTTP channel Pin
originSH2-Jul-07 2:40
originSH2-Jul-07 2:40 
QuestionProblem with symetric algorithm (Rihndael) Pin
FernandoCR2-Jul-07 0:20
FernandoCR2-Jul-07 0:20 
AnswerRe: Problem with symetric algorithm (Rihndael) Pin
Abisodun2-Jul-07 2:41
Abisodun2-Jul-07 2:41 
GeneralRe: Problem with symetric algorithm (Rihndael) Pin
FernandoCR3-Jul-07 1:13
FernandoCR3-Jul-07 1:13 
QuestionReading color of each entity in DXF file Pin
a_david1232-Jul-07 0:16
a_david1232-Jul-07 0:16 
Questionwriting a hardware lock Pin
logicaldna1-Jul-07 23:36
logicaldna1-Jul-07 23:36 
AnswerRe: writing a hardware lock Pin
Luc Pattyn1-Jul-07 23:50
sitebuilderLuc Pattyn1-Jul-07 23:50 
GeneralRe: writing a hardware lock Pin
logicaldna2-Jul-07 0:19
logicaldna2-Jul-07 0:19 
QuestionExporting data from database to a file, zipping it and mailing Pin
I.explore.code1-Jul-07 23:22
I.explore.code1-Jul-07 23:22 
AnswerRe: Exporting data from database to a file, zipping it and mailing Pin
nitikin2-Jul-07 0:16
nitikin2-Jul-07 0:16 
QuestionProblem in closing the login window Pin
I.explore.code1-Jul-07 23:15
I.explore.code1-Jul-07 23:15 
AnswerRe: Problem in closing the login window Pin
logicaldna1-Jul-07 23:41
logicaldna1-Jul-07 23:41 
AnswerRe: Problem in closing the login window Pin
Martin#1-Jul-07 23:44
Martin#1-Jul-07 23:44 
AnswerRe: Problem in closing the login window Pin
Navneet Hegde2-Jul-07 1:56
Navneet Hegde2-Jul-07 1:56 

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.